Page 12 of 33 FirstFirst ... 2345678910111213141516171819202122 ... LastLast
Results 111 to 120 of 328

Thread: Fusion Brain Version 6 -- Beta Testing

  1. #111
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    bump
    Love

  2. #112
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    How do we resize fusegl?
    Love

  3. #113
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    bump
    I will try to get some code up shortly.

    Quote Originally Posted by rEegLer View Post
    How do we resize fusegl?
    in your UserGUIConfig.xml File, you can add XML exactly like the internal configuration file at the root.

    So:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FuseGL_User_Settings>
      ...
      <FuseGL_GUI_Settings>
        <setting type="size" name="gui_size" width="90%" height="600" />
        <setting type="int" gui_border_thickness="1" />
        <setting type="colour" gui_border_colour="85,85,85" />
      </FuseGL_GUI_Settings>
      ...
    </FuseGL_User_Settings>
    So keep the names, just change the values. It should be pretty obvious. And you can change any of the GUIConfig settings as long as you keep the hierarchy.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  4. #114
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    Quote Originally Posted by 2k1Toaster View Post
    I will try to get some code up shortly.



    in your UserGUIConfig.xml File, you can add XML exactly like the internal configuration file at the root.

    So:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FuseGL_User_Settings>
      ...
      <FuseGL_GUI_Settings>
        <setting type="size" name="gui_size" width="90%" height="600" />
        <setting type="int" gui_border_thickness="1" />
        <setting type="colour" gui_border_colour="85,85,85" />
      </FuseGL_GUI_Settings>
      ...
    </FuseGL_User_Settings>
    So keep the names, just change the values. It should be pretty obvious. And you can change any of the GUIConfig settings as long as you keep the hierarchy.
    Is there a list of commands somewhere?

    also did you see my question from a couple posts back?

    How do you call an analog input from the FB and then analyze that value and send a keystroke based on in-between statements?
    Love

  5. #115
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    Is there a list of commands somewhere?
    Commands for GUI override settings, or something else?

    For the GUI override settings, no there is not. But I can just post bits of what the program uses internally. Also you can look at the FuseGL trace and it will say everything it is doing and reverse engineer if in a pinch.

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FuseGL_GUI_Settings>
      <setting type="size" name="gui_size" width="90%" height="600" />
      <setting type="int" gui_border_thickness="1" />
      <setting type="colour" gui_border_colour="85,85,85" />
      <setting type="colour" gui_background_colour="23,24,25" />
      <TitleBar>
        <setting type="bool" titlebar_auto_hide="true" />
        <setting type="key"  titlebar_reveal_key="ALTLeft" />
        <Background type="FuseGL_Object">
          <setting type="string" name="Application Title Bar Background" />
          <image name="Default Background Image" location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.top_banner_header_gradient" />
          <size width="100%" height="31" />
          <location x="0" y="0" z="0" alignment="left" />
          <events>
            <onMouseDoubleDown action="FuseGL.ToggleMaximize" />
          </events>
        </Background>
        <App_Logo type="FuseGL_Object">
          <setting type="string" name="Application Logo Image" />
          <image location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.FuseLogo" />
          <size width="69" height="31" />
          <location x="29" y="0" z="0" alignment="left" />
        </App_Logo>
        <App_Logo_Animated type="FuseGL_Object">
          <setting type="string" name="Animated Application Logo Image" />
          <image location="internal" path="FuseGL.GUI.FuseGL_Animated_App_Logo_Resources.logoImage_****" start_index="0" end_index="419" />
          <size width="83" height="47" />
          <location x="-23" y="-7" z="0" alignment="left" />
        </App_Logo_Animated>
        <Minimize_Button type="FuseGL_Object">
          <setting type="string" name="Application Minimize Button Normal State" />
          <image location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_minimize" />
          <image_hover location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_minimize_hover" />
          <image_click location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_minimize_hover" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
          <size width="16" height="16" />
          <location x="47" y="9" z="0" alignment="right" />
          <events>
            <onMouseUp action="FuseGL.MinimizeProgram" />
          </events>
        </Minimize_Button>
        <Close_Button type="FuseGL_Object">
          <setting type="string" name="Application Close Button Normal State" />
          <image location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_close" />
          <image_hover location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_close_hover" />
          <image_click location="internal" path="FuseGL.GUI.Title_Bar.TitleBarResources.app_close_hover" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
          <size width="16" height="16" />
          <location x="16" y="9" z="0" alignment="right" />
          <events>
            <onMouseUp action="FuseGL.CloseProgram" />
            <!-- <onMouseDown action="someMethodNameForReflection" inputargs="some input objects" output="return to object" /> -->
          </events>
        </Close_Button>
      </TitleBar>
      <Cursor_Surround type="FuseGL_Object">
        <setting type="string" name="Cursor Surround Animation" />
        <size width="31" height="31" />
        <location x="0" y="0" z="0" alignment="mouse" />
        <image location="internal" path="FuseGL.GUI.GUI_CursorSurround.load_s**" start_index="1" end_index="8" />
      </Cursor_Surround>
      <Popup_Dialogue>
        <setting type="size" name="popup_size" width="200" height="120" />
        <setting type="int" popup_border_thickness="1" />
        <setting type="colour" popup_border_colour="85,85,85" />
        <setting type="int" popup_fade_timer="3000" />
        <setting type="int" multiple_popup_spacing="10" />
        <location name="UI_spacing_offsets" x="10" y="110" z="0" alignment="left" />
        <image name="Popup Menu Background Image" location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.background" />
        <image name="Progress Box" location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.SquareBox" />
        <Animated_Application_Logo type="FuseGL_Object">
          <setting type="string" name="Popup Animated Application Logo" />
          <image location="internal" path="FuseGL.GUI.BigAppLogo_ResourceFile.AppLogo***" start_index="0" end_index="419" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="false" />
          <size width="200" height="75" />
          <location x="0" y="-23" z="0" alignment="radial" />
        </Animated_Application_Logo>
        <Close_Button type="FuseGL_Object">
          <setting type="string" name="Popup Close Button State" />
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.popup_close" />
          <hoverimage location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.popup_close_hover" />
          <clickimage location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.popup_close_hover" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
          <size width="16" height="16" />
          <location x="-31" y="9" z="0" alignment="right" />
          <events>
            <onMouseDown action="this.ClosePopup" />
          </events>
        </Close_Button>
        <CheckBox_Checked type="FuseGL_Object">
          <setting type="string" name="Popup Close Button State" />
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.Checked" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
          <size width="16" height="16" />
          <location x="-31" y="9" z="0" alignment="right" />
          <events>
            <onMouseDown action="this.ClosePopup" />
          </events>
        </CheckBox_Checked>
        <CheckBox_Unchecked type="FuseGL_Object">
          <setting type="string" name="Popup Close Button State" />
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.NotChecked" />
          <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
          <size width="16" height="16" />
          <location x="-31" y="9" z="0" alignment="right" />
          <events>
            <onMouseDown action="this.ClosePopup" />
          </events>
        </CheckBox_Unchecked>
        <PopupDialogue_NotConfigured type="FuseGL_PopupDialogue">
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.ClickOrHoverToConfigure" />
          <setting type="bool" is_manually_closable="true" />
          <setting type="PopupDialogue.UI" uitype="checkbox" />
          <KeyboardAction type="KeyboardManager.KeyboardAction">
            <setting type="string" name="Show Configuration Popup Menu Keyboard Action" />
            <setting type="key" key_shortcut="F10" />
            <events>
              <onKeyDown action=",this.ShowPopup" />
            </events>
          </KeyboardAction>
          <events>
            <onMouseDown action="FuseGL.StartInternalConfiguration" />
            <onLongHover action="FuseGL.StartInternalConfiguration" />
          </events>
        </PopupDialogue_NotConfigured>
        <PopupDialogue_BrainConnected type="FuseGL_PopupDialogue">
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.FBConnected" />
          <setting type="bool" is_manually_closable="true" />
          <events>
            <onFusionBrainConnect action="this.ShowPopup" />
          </events>
        </PopupDialogue_BrainConnected>
        <PopupDialogue_BrainDisconnected type="FuseGL_PopupDialogue">
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.FBDisconnected" />
          <setting type="bool" is_manually_closable="true" />
          <events>
            <onFusionBrainDisconnect action="this.ShowPopup" />
          </events>
        </PopupDialogue_BrainDisconnected>
        <PopupDialogue_UpdateAvailable type="FuseGL_PopupDialogue">
          <image location="internal" path="FuseGL.GUI.Popup_Dialogue.PopupDialogue_Resources.UpdateAvailable_Text" />
          <setting type="bool" is_manually_closable="true" />
          <setting type="int" popup_fade_timer="-1" />
          <events>
            <onUpdateAvailable action="this.ShowPopup" />
          </events>
        </PopupDialogue_UpdateAvailable>
      </Popup_Dialogue>
      <GlobalKeyboardActions>
        <KeyboardAction type="KeyboardManager.KeyboardAction">
          <setting type="string" name="Close Program with Escape Key" />
          <setting type="key" key_shortcut="Escape" />
          <events>
            <onKeyDown action="FuseGL.CloseProgram" />
          </events>
        </KeyboardAction>
      </GlobalKeyboardActions>
    </FuseGL_GUI_Settings>
    [/quote]
    also did you see my question from a couple posts back?[/QUOTE]

    I do now. It is pretty simple, I will post some.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  6. #116
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    I tried that bit of code and it just doesn't execute. Task manager shows it popping up for a half second and then goes away. No trace file created as well. So the GUI settings are 'under' the User settings? I would have thought that GUI and User settings would be seperate like this:

    Code:
    <FuseGL_GUI_Settings>
    ...
    </FuseGL_GUI_Settings>
    <FuseGL_User_Settings>
    ...
    </FuseGL_User_Settings>
    ...based on the trace file which loads the xmlnode FuseGL_GUI_Settings first before FuseGL_User_Settings.
    Love

  7. #117
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    I tried that bit of code and it just doesn't execute. Task manager shows it popping up for a half second and then goes away. No trace file created as well. So the GUI settings are 'under' the User settings? I would have thought that GUI and User settings would be seperate like this
    ...based on the trace file which loads the xmlnode FuseGL_GUI_Settings first before FuseGL_User_Settings.
    Yes the GUI is under user, since these are user gui settings. The full xml code I provided above is loaded first. Everytime it loads something from that file, it cross-checks the user file to see if there is something overriding it.

    The program should run regardless of the user XML structure. If it pops up and goes away, there is some other problem going on.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  8. #118
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    Here's the code in the config file that I have:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <FuseGL_User_Settings>
      <FuseGL_GUI_Settings>
        <setting type="size" name="gui_size" width="274" height="600" />
        <setting type="int" gui_border_thickness="1" />
        <setting type="colour" gui_border_colour="85,85,85" />
      </FuseGL_GUI_Settings>
      <User_Object type="FuseGL_Object">
        <setting type="string" name="GL - LBL - Show Thing:Raw Analogue Input[0,0]" />
        <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resources.UserButtonBackground" />
        <text text="Unknown State" />
        <size width="200" height="50" />
        <location x="300" y="50" z="0" alignment="L" />
        <setting type="int" border_size="1" />
        <setting type="bool" mouse_cursor_to_hand_on_hover="false" />
        <events>
          <startup action="FuseGL.ExecuteCode" inputArgs="UpdateLabelText.cs;FuseGL_TextManipulation.InternalFlyCompile_UpdateLabelText;ChangeButtonTextOnAnalogueInputPersistant;{FB.AnalogueInput(0.0)};{this.text};0.000;" outputTo="this.text.text" />
        </events>
      </User_Object>
      <User_Object type="FuseGL_Object">
        <setting type="string" name="GL - LBL - Show Thing:Raw Analogue Input[0,1]" />
        <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resources.UserButtonBackground" />
        <text text="Unknown State" />
        <size width="200" height="50" />
        <location x="300" y="100" z="0" alignment="L" />
        <setting type="int" border_size="1" />
        <setting type="bool" mouse_cursor_to_hand_on_hover="false" />
        <events>
          <startup action="FuseGL.ExecuteCode" inputArgs="UpdateLabelText.cs;FuseGL_TextManipulation.InternalFlyCompile_UpdateLabelText;ChangeButtonTextOnAnalogueInputPersistant;{FB.AnalogueInput(0.1)};{this.text};0.000;" outputTo="this.text.text" />
        </events>
      </User_Object>
      <User_Object type="FuseGL_Object">
        <setting type="string" name="GL - LBL - Show Thing:Raw Analogue Input[0,2]" />
        <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resources.UserButtonBackground" />
        <text text="Unknown State" />
        <size width="200" height="50" />
        <location x="300" y="150" z="0" alignment="L" />
        <setting type="int" border_size="1" />
        <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
        <events>
          <startup action="FuseGL.ExecuteCode" inputArgs="UpdateLabelText.cs;FuseGL_TextManipulation.InternalFlyCompile_UpdateLabelText;ChangeButtonTextOnAnalogueInputPersistant;{FB.AnalogueInput(0.2)};{this.text};0.000;" outputTo="this.text.text" />
        </events>
      </User_Object>
    </FuseGL_User_Settings>
    Maybe I'm missing something?
    Love

  9. #119
    Variable Bitrate rEegLer's Avatar
    Join Date
    Jul 2008
    Location
    Mechanicsburg, PA
    Posts
    266
    I tried it on my actual carPC and does not work. Gives me the "FuseGL has encountered an error...." dialog.
    Love

  10. #120
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by rEegLer View Post
    I tried it on my actual carPC and does not work. Gives me the "FuseGL has encountered an error...." dialog.
    Then you don't have the correct dependencies installed.

    You need .NET installed, and that is what I would try first.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. ** NEW Fusion Brain Version 6, Pre-Order NOW **
    By 2k1Toaster in forum Fusion Brain
    Replies: 259
    Last Post: 04-07-2013, 02:48 PM
  2. Fusion Brain version 4
    By MattFreitag in forum Fusion Brain
    Replies: 7
    Last Post: 08-01-2010, 04:32 PM
  3. Fusion Brain -- Digital Encoder Beta Test
    By 2k1Toaster in forum Fusion Brain
    Replies: 52
    Last Post: 09-18-2009, 02:11 PM
  4. Fusion Brain Version 4 Manual
    By greenman100 in forum FB Documentation and Tutorials
    Replies: 0
    Last Post: 12-19-2008, 02:11 PM
  5. Fusion Brain Version 4 ready for Beta Testers!
    By greenman100 in forum Fusion Brain
    Replies: 15
    Last Post: 11-13-2008, 10:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •