Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2015, 1:05:54 PM (9 years ago)
Author:
fvultier
Message:

HUD improved. Corrected text rescaling. Renamed reload to shieldRecharge in Pawn.cc, … to avoid confusion with the weapon system.

Location:
code/branches/fabienHS15/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/data/gui/layouts/InGameMenu.layout

    r7801 r10739  
    99            <Property Name="Text" Value="Return to Game" />
    1010            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    11             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
     11            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2875,0},{0.6,0},{0.3375,0}}" />
    1212            <Property Name="Alpha" Value="0.9" />
    1313            <Event Name="Clicked" Function="InGameMenu.button_return_clicked"/>
    1414        </Window>
     15        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_ReloadLevelButton" >
     16            <Property Name="Text" Value="Reload level" />
     17            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     18            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
     19            <Property Name="Alpha" Value="0.9" />
     20            <Event Name="Clicked" Function="InGameMenu.button_reloadLevel_clicked"/>
     21        </Window>       
    1522        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_MainMenuButton" >
    1623            <Property Name="Text" Value="Main Menu" />
    1724            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    18             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4625,0},{0.6,0},{0.5125,0}}" />
     25            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4375,0},{0.6,0},{0.4875,0}}" />
    1926            <Property Name="Alpha" Value="0.9" />
    2027            <Event Name="Clicked" Function="InGameMenu.button_mainmenu_clicked"/>
     
    2330            <Property Name="Text" Value="Settings" />
    2431            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    25             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5625,0},{0.6,0},{0.6125,0}}" />
     32            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5125,0},{0.6,0},{0.5625,0}}" />
    2633            <Property Name="Alpha" Value="0.9" />
    2734            <Event Name="Clicked" Function="InGameMenu.button_settings_clicked"/>
     
    3037            <Property Name="Text" Value="Quit" />
    3138            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    32             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
     39            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5875,0},{0.6,0},{0.6375,0}}" />
    3340            <Property Name="Alpha" Value="0.9" />
    3441            <Event Name="Clicked" Function="InGameMenu.button_quit_clicked"/>
  • code/branches/fabienHS15/data/gui/scripts/InGameMenu.lua

    r9016 r10739  
    77    P.multiplayerMode = "startClient"
    88
    9     --button are arranged in a 4x1 matrix, the left lower item is nil
     9    --button are arranged in a 5x1 matrix, the left lower item is nil
    1010    P:setButton(1, 1, {
    1111            ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReturnButton"),
     
    1414
    1515    P:setButton(2, 1, {
     16            ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReloadLevelButton"),
     17            ["callback"]  = P.button_reloadLevel_clicked
     18    })
     19
     20    P:setButton(3, 1, {
    1621            ["button"] = winMgr:getWindow("orxonox/InGameMenu_MainMenuButton"),
    1722            ["callback"]  = P.button_mainmenu_clicked
    1823    })
    1924
    20     P:setButton(3, 1, {
     25    P:setButton(4, 1, {
    2126            ["button"] = winMgr:getWindow("orxonox/InGameMenu_SettingsButton"),
    2227            ["callback"]  = P.button_settings_clicked
    2328    })
    2429
    25     P:setButton(4, 1, {
     30    P:setButton(5, 1, {
    2631            ["button"] = winMgr:getWindow("orxonox/InGameMenu_QuitButton"),
    2732            ["callback"]  = P.button_quit_clicked
     
    5459end
    5560
     61function P.button_reloadLevel_clicked(e)
     62    hideMenuSheet("InGameMenu")
     63    orxonox.execute("reloadLevel")
     64end
     65
    5666function P.button_return_clicked(e)
    5767    hideMenuSheet("InGameMenu")
  • code/branches/fabienHS15/data/overlays/HUDTemplates3.oxo

    r10724 r10739  
    3434     name              = "HealthBar1"
    3535     background        = "Orxonox/HealthBarBackground"
    36      size              = "0.35, 0.0875"
     36     size              = "0.40, 0.08"
    3737     position          = "0.0 , 0.9 "
    3838     pickpoint         = "0, 1"
     
    4040     textfont          = "VeraMono"
    4141     textusebarcolour  = true
    42      textsize          = 0.039
    43      textoffset        = "0.315, 0.05"
     42     textscale          = 0.4
     43     textoffset        = "0.325, -0.825"
    4444     textpickpoint     = "0, 0"
    4545     textalign         = "right"
    46      correctaspect     = false
    47      textcorrectaspect = false
     46     correctaspect     = true
     47     iconmaterial      = "Orxonox/BarIconHealth"
    4848    >
    4949      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
     
    5555     name          = "SpeedBar1"
    5656     background    = "Orxonox/BarBackground"
    57      size          = "0.35, 0.05"
     57     size          = "0.40, 0.04"
    5858     position      = "0.0 , 0.95 "
    5959     pickpoint     = "0, 1"
    60      correctaspect = false
     60     correctaspect = true
     61     iconmaterial  = "Orxonox/BarIconSpeed"
    6162    >
    6263      <BarColour position = 0.0 colour = "0.7,0.5,0.2" />
     
    6768    <HUDBoostBar
    6869     name          = "BoostBar1"
    69      backgroundtex = "bar1.png"
    70      size          = "0.35, 0.05"
     70     background    = "Orxonox/BarBackground"
     71     size          = "0.40, 0.04"
    7172     position      = "0.0 , 1.0 "
    7273     pickpoint     = "0, 1"
    73      correctaspect = false
     74     correctaspect = true
     75     iconmaterial  = "Orxonox/BarIconBoost"
    7476    >
    7577      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
     
    8183     name              = "EnemyHealthBar"
    8284     background        = "Orxonox/HealthBarBackground"
    83      size              = "0.35, 0.0875"
    84      position          = "1 ,0.1"
    85      pickpoint         = "1, 1"
     85     size              = "0.4, 0.08"
     86     position          = "1 ,0"
     87     pickpoint         = "1, 0"
    8688     bartexture        = "healthbar_bar.png"
    8789     textfont          = "VeraMono"
    8890     textusebarcolour  = true
    89      textsize          = 0.039
    90      textoffset        = "0.315, 0.05"
     91     textscale         = 0.4
     92     textoffset        = "-0.675, 0.175"
    9193     textpickpoint     = "0, 0"
    9294     textalign         = "right"
    93      correctaspect     = false
    94      textcorrectaspect = false
     95     correctaspect     = true
     96     iconmaterial      = "Orxonox/BarIconHealth"
    9597    >
    9698      <BarColour position = 0.0 colour = "0.7,0.2,0.2" />
     
    131133     name                   = "WeaponSystem"
    132134     correctaspect          = true
    133      position               = "0.0, 0.0"
     135     position               = "0.01, 0.01"
    134136     pickpoint              = "0, 0"
    135137     visible                = "true"
Note: See TracChangeset for help on using the changeset viewer.