Skip to content

Commit

Permalink
change strings to aliases in ui.cfg F1 menu for project-imprimis#18
Browse files Browse the repository at this point in the history
  • Loading branch information
b-sharman committed Feb 25, 2021
1 parent 3fb8ff2 commit 6fa5c45
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 22 deletions.
27 changes: 27 additions & 0 deletions config/lang_en.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
///////////////////////////////////////////////////////////////////////////////
// fkey.cfg //
///////////////////////////////////////////////////////////////////////////////
uistr_unfinished = "ToDo"
// add as in create an entity object
uistr_fkey_0 = "Add"
//F1: add/edit entity
uistr_fkey_1 = "Edit Entity"
uistr_fkey_2 = "Light"
uistr_fkey_3 = "Spotlight"
uistr_fkey_4 = "Mapmodel"
uistr_fkey_5 = "Particles"
uistr_fkey_6 = "Playerstart"
uistr_fkey_7 = "Playerstart ^f1Azul"
uistr_fkey_8 = "Playerstart ^f3Rojo"
uistr_fkey_9 = "Entity Snapping"
uistr_fkey_10 = "Add Entity"
uistr_fkey_11 = "Radius"
uistr_fkey_12 = "Red"
uistr_fkey_13 = "Green"
uistr_fkey_14 = "Blue"
uistr_fkey_15 = "Type"
uistr_fkey_16 = "Add Entity - Light"
uistr_fkey_17 = "Angle"
uistr_fkey_18 = "Add Entity - Spotlight"
uistr_fkey_19 = "Add Entity - Particles"

///////////////////////////////////////////////////////////////////////////////
// game.cfg //
///////////////////////////////////////////////////////////////////////////////
Expand Down
44 changes: 22 additions & 22 deletions config/ui/fkey.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ UImenu "editentity" [
uifill 0.5 0.5 [
UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
]
] [] [] [] "Edit Entity"
] [] [] [] $uistr_fkey_1

UImenu "addentity" [
uispace 0.008 0.015 [
Expand All @@ -21,32 +21,32 @@ UImenu "addentity" [
uifill 0 0.025
uihlist 0.005 [
uivlist 0.005 [
UIbutton "" [uitext "Light" 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_light"] -1 [uihover [UI_enttype = "light ^f4*"]]
UIbutton "" [uitext "Spotlight" 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_spotlight"] -1 [uihover [UI_enttype = "spotlight ^f4*"]]
UIbutton "" [uitext $uistr_fkey_2 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_light"] -1 [uihover [UI_enttype = "light ^f4*"]]
UIbutton "" [uitext $uistr_fkey_3 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_spotlight"] -1 [uihover [UI_enttype = "spotlight ^f4*"]]
]
uivlist 0.005 [
UIbutton "" [uitext "Mapmodel" 0.6; UI_keyref 2 0.027 0.027 "F3"] 0.2 0.04 [hideui "addentity"; showui "mapmodel"] -1 [uihover [UI_enttype = "mapmodel ^f4*"]]
UIbutton "" [uitext "Particles" 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_particles"] -1 [uihover [UI_enttype = "particles ^f4*"]]
UIbutton "" [uitext $uistr_fkey_4 0.6; UI_keyref 2 0.027 0.027 "F3"] 0.2 0.04 [hideui "addentity"; showui "mapmodel"] -1 [uihover [UI_enttype = "mapmodel ^f4*"]]
UIbutton "" [uitext $uistr_fkey_5 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_particles"] -1 [uihover [UI_enttype = "particles ^f4*"]]
]
uivlist 0.005 [
UIbutton "" [uitext "Playerstart" 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart] -1 [uihover [UI_enttype = "playerstart"]]
UIbutton "" [uitext "Playerstart ^f1Azul" 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 1] -1 [uihover [UI_enttype = "playerstart 1"]]
UIbutton "" [uitext "Playerstart ^f3Rojo" 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 2] -1 [uihover [UI_enttype = "playerstart 2"]]
UIbutton "" [uitext $uistr_fkey_6 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart] -1 [uihover [UI_enttype = "playerstart"]]
UIbutton "" [uitext $uistr_fkey_7 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 1] -1 [uihover [UI_enttype = "playerstart 1"]]
UIbutton "" [uitext $uistr_fkey_8 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 2] -1 [uihover [UI_enttype = "playerstart 2"]]
]
uialign* -1 -1
]
uifill 0 0.01
UIbutton "hold2" [
UIcheckbox $entselsnap 0.016
uitext "Entity Snapping" 0.6
uitext $uistr_fkey_9 0.6
UI_keyref 2 0.027 0.027 "7"
] 0.25 0.04 [entselsnap (! $entselsnap)]
]
]
] [
UI_enttype = " "
looplist a ["editentity" "ent_light" "ent_spotlight" "mapmodel" "ent_particles"] [hideui $a]
] [] [] "Add Entity"
] [] [] $uistr_fkey_10

UI_lts = 128
UI_ltr = 127
Expand All @@ -64,36 +64,36 @@ UImenu "ent_light" [
uifill 0 0.025
uitable 0.005 0.005 [
uitablerow [
uitext "Radius" 0.6
uitext $uistr_fkey_11 0.6
UIhslider UI_lts 1 256 1 0.5 0.032 [uitext $UI_lts 0.6]
uialign* -1 0
]
uitablerow [
uitext "Red" 0.6
uitext $uistr_fkey_12 0.6
UIhslider UI_ltr 0 255 1 0.5 0.032 [uitext $UI_ltr 0.6]
uialign* -1 0
]
uitablerow [
uitext "Green" 0.6
uitext $uistr_fkey_13 0.6
UIhslider UI_ltg 0 255 1 0.5 0.032 [uitext $UI_ltg 0.6]
uialign* -1 0
]
uitablerow [
uitext "Blue" 0.6
uitext $uistr_fkey_14 0.6
UIhslider UI_ltb 0 255 1 0.5 0.032 [uitext $UI_ltb 0.6]
uialign* -1 0
]
uitablerow [
uitext "Type" 0.6
uitext $uistr_fkey_15 0.6
UIhslider UI_ltt 0 2 1 0.5 0.032 [uitext $UI_ltt 0.6]
uialign* -1 0
]
]
uifill 0 0.025
UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_light" ; newent light $UI_lts $UI_ltr $UI_ltg $UI_ltb $UI_ltt]
UIbutton "" [uitext $uistr_fkey_0 0.6] 0.12 0.06 [hideui "ent_light" ; newent light $UI_lts $UI_ltr $UI_ltg $UI_ltb $UI_ltt]
]
]
] [] [] [] "Add Entity - Light"
] [] [] [] $uistr_fkey_16

UI_sla = 45
UImenu "ent_spotlight" [
Expand All @@ -106,15 +106,15 @@ UImenu "ent_spotlight" [
]
uifill 0 0.025
uihlist 0.005 [
uitext "Angle" 0.6
uitext $uistr_fkey_17 0.6
UIhslider UI_sla 1 90 1 0.5 0.032 [uitext $UI_sla 0.6]
uialign* -1 0
]
uifill 0 0.025
UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_spotlight" ; newent spotlight $UI_sla]
UIbutton "" [uitext $uistr_fkey_0 0.6] 0.12 0.06 [hideui "ent_spotlight" ; newent spotlight $UI_sla]
]
]
] [] [] [] "Add Entity - Spotlight"
] [] [] [] $uistr_fkey_18

UImenu "ent_particles" [
uispace 0.008 0.015 [
Expand All @@ -125,10 +125,10 @@ UImenu "ent_particles" [
uioutline $c_line ; uiclamp- 1 1 1 1
]
uifill 0 0.025
UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
UIbutton "" [uitext $uistr_unfinished 0.8] 0.3 0.2 [hidetopui]
]
]
] [] [] [] "Add Entity - Particles"
] [] [] [] $uistr_fkey_19

///////////////////////////////////////////////////////////////////////////////
// F2 Texture Browser //
Expand Down

0 comments on commit 6fa5c45

Please sign in to comment.