Skip to content

Commit

Permalink
use new smaaproperty semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Aug 9, 2023
1 parent 3416511 commit 0117510
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/ui/options.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,15 @@ UImenu "options" [
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $smaa 0.016
UIcheckbox (getsmaaproperty 3) 0.016
uitext $uistr_options_52 0.6
] $UI_optc1wB $UI_optrowh [smaa (! $smaa)] -1
] $UI_optc1wB $UI_optrowh [setsmaaproperty 3 (! (getsmaaproperty 3))] -1
UIlistslider smaaquality = [
0 @(concatword (? (! $smaa) "^f4" "^f1") $uistr_options_g_0)
1 @(concatword (? (! $smaa) "^f4" "^f0") $uistr_options_g_1)
2 @(concatword (? (! $smaa) "^f4" "^f2") $uistr_options_g_2)
3 @(concatword (? (! $smaa) "^f4" "^f3") $uistr_options_g_3)
] 0.3 $UI_optrowh [smaacoloredge (>= $smaaquality 3)]
0 @(concatword (? (! (getsmaaproperty 3)) "^f4" "^f1") $uistr_options_g_0)
1 @(concatword (? (! (getsmaaproperty 3)) "^f4" "^f0") $uistr_options_g_1)
2 @(concatword (? (! (getsmaaproperty 3)) "^f4" "^f2") $uistr_options_g_2)
3 @(concatword (? (! (getsmaaproperty 3)) "^f4" "^f3") $uistr_options_g_3)
] 0.3 $UI_optrowh [setsmaaproperty 6 (>= (getsmaaproperty 5) 3)]
uialign* -1 0
]
uitablerow [
Expand Down
1 change: 1 addition & 0 deletions game/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ int main(int argc, char **argv)
atexit(enet_deinitialize);
enet_time_set(0);
logoutf("init: cubescript");
initaacmds();
initcscmds();
initmathcmds();
initcontrolcmds();
Expand Down

0 comments on commit 0117510

Please sign in to comment.