Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2009, 12:19:11 AM (15 years ago)
Author:
rgrieder
Message:

Cleaned out the lua script files for the GUI.
Also replaced "require" function to support resources.
Fixed a problem with the return value of doFile, includeFile and require being discarded because the tolua binding is for a C++ function returning void.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/data/gui/layouts/MainMenu.layout

    r5653 r5661  
    1212            <Property Name="Text" Value="Standalone"/>
    1313            <Property Name="Disabled" Value="true"/>
    14             <Event Name="Clicked" Function="mainmenu_2.button_standalone_clicked"/>
     14            <Event Name="Clicked" Function="MainMenu.button_standalone_clicked"/>
    1515        </Window>
    1616       
     
    2020            <Property Name="UnifiedSize" Value="{{0.35,0},{0.33,0}}" />
    2121            <Property Name="Tooltip" Value="Available Levels." />
    22             <Event Name="ItemSelectionChanged" Function="mainmenu_2.listbox_level_selectionchanged" />
     22            <Event Name="ItemSelectionChanged" Function="MainMenu.listbox_level_selectionchanged" />
    2323        </Window>
    2424       
     
    2727            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
    2828            <Property Name="Text" Value="Dedicated"/>
    29             <Event Name="Clicked" Function="mainmenu_2.button_dedicated_clicked"/>
     29            <Event Name="Clicked" Function="MainMenu.button_dedicated_clicked"/>
    3030        </Window>
    3131       
     
    3434            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
    3535            <Property Name="Text" Value="Server"/>
    36             <Event Name="Clicked" Function="mainmenu_2.button_server_clicked"/>
     36            <Event Name="Clicked" Function="MainMenu.button_server_clicked"/>
    3737        </Window>
    3838       
     
    4141            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
    4242            <Property Name="Text" Value="Client"/>
    43             <Event Name="Clicked" Function="mainmenu_2.button_client_clicked"/>
     43            <Event Name="Clicked" Function="MainMenu.button_client_clicked"/>
    4444        </Window>
    4545       
     
    4848            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
    4949            <Property Name="Text" Value="Quit"/>
    50             <Event Name="Clicked" Function="mainmenu_2.button_quit_clicked"/>
     50            <Event Name="Clicked" Function="MainMenu.button_quit_clicked"/>
    5151        </Window>
    5252    </Window>
Note: See TracChangeset for help on using the changeset viewer.