Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
fd60d84
TTF font and Unicode support
Jed- Sep 18, 2024
c5ac22e
Alignment and justification settings for `uiwraptext`
Jed- Oct 21, 2024
ed09aef
Cleanup
Jed- Oct 21, 2024
8f3490a
Merge branch 'main' into text
Jed- Oct 25, 2024
357a0d9
Merge branch 'main' into text
Jed- Nov 3, 2024
9a629ad
Replace "wide" font and fix compilation
Jed- Nov 3, 2024
77249cd
Make room for the outline
Jed- Nov 3, 2024
c1e1495
Cleanup
Jed- Nov 3, 2024
0fa441f
Add commands: `uiwrapalign`, `uijustify`, `uishadow`, `uifontoutline`…
Jed- Nov 3, 2024
478660d
Restore font outlines
Jed- Nov 3, 2024
9ec29e8
Add `conoutline` variable
Jed- Nov 3, 2024
fed4309
Remove overline support
Jed- Nov 3, 2024
7b7743f
Remove `fontletterspacing`
Jed- Nov 3, 2024
f670ccd
Missed one
Jed- Nov 3, 2024
9c84f9c
Remove debug logs
Jed- Nov 3, 2024
e21e2f9
Mark player names as duplicates if they are visually identical, even …
Jed- Nov 4, 2024
3d8dea2
Full console doesn't need shadow or outline
Jed- Nov 4, 2024
65d167b
Draw the outline around the cursor
Jed- Nov 4, 2024
b988212
Use official data from Unicode
Jed- Nov 4, 2024
7493b9a
Add `uinofallback` command to disable falling back to system fonts
Jed- Nov 4, 2024
dc5ba9f
Don't allow a certain codepoint in player names
Jed- Nov 4, 2024
8ccb0f9
Add `textcolor` command to customize text colors from cubescript
Jed- Nov 4, 2024
d09c83d
Redraw text after changing palette colors
Jed- Nov 4, 2024
08d653d
Automatically load all fonts in the font directory
Jed- Nov 4, 2024
188d00f
Remove argument from `uijustify`
Jed- Nov 8, 2024
3e50f3f
Use overloaded operators for color comparisons; always respect `uifps`
Jed- Nov 8, 2024
cc317aa
Move text function declarations to `engine.h` and rename arguments
Jed- Nov 8, 2024
5582798
Fix change detection
Jed- Nov 8, 2024
3808083
Merge branch 'main' into text
Jed- Nov 8, 2024
e09d18e
Merge branch 'main' into text
Jed- Nov 9, 2024
acdb4dc
Update Makefile
Jed- Nov 9, 2024
35542a1
Merge branch 'main' into text
Jed- Nov 16, 2024
c9f8d1e
Post-merge whitespace fixes
Jed- Nov 16, 2024
78d403f
Add fonts
Jed- Nov 16, 2024
7dc7903
Tweak font sizes
Jed- Nov 16, 2024
dad1555
Apply `conshadow` and `conoutline` in more places
Jed- Nov 16, 2024
ae73ca2
Tweak font sizes
Jed- Nov 16, 2024
af6c9f2
Merge branch 'main' into text
Jed- Nov 24, 2024
5d6b064
Fix UB
Jed- Nov 24, 2024
65a46b6
Avoid variable-length arrays
Jed- Nov 24, 2024
15386ce
Minor cleanup
Jed- Nov 24, 2024
7b9094c
Move console text functions to rendertext.cpp
Jed- Nov 24, 2024
51bad8c
Refactor
Jed- Nov 27, 2024
dcc1b00
Allow `uitext` to detect clicks and key presses
Jed- Nov 29, 2024
80cf0b6
Convert tabs to spaces
Jed- Nov 30, 2024
2040164
Merge branch 'main' into text
Jed- Nov 30, 2024
71eb7a4
Update Makefile
Jed- Nov 30, 2024
05e9c76
Fix `iskeyheld` command and get rid of `holdingctrl`
Jed- Nov 30, 2024
517d5fc
Remove unnecessary memset
Jed- Dec 1, 2024
4bdb357
Don't open the scoreboard when pressing "TAB" if the command line is …
Jed- Dec 2, 2024
d66cefe
Allow UI elements to receive mouse button press events
Jed- Dec 3, 2024
32db006
Allow other text elements to have a cursor and listen for keyboard an…
Jed- Dec 6, 2024
db3bcf4
Rename function
Jed- Dec 6, 2024
69c9a65
Cleanup
Jed- Dec 6, 2024
8793be5
Merge branch 'main' into text
Jed- Dec 6, 2024
44d1b8f
Cleanup
Jed- Dec 11, 2024
75987af
Unicode cleanup
Jed- Dec 11, 2024
70c2c6f
Pre-merge changes
Jed- Dec 16, 2024
7d7765d
Merge branch 'main' into text
Jed- Dec 16, 2024
1c02ea3
Post-merge fixes
Jed- Dec 16, 2024
916bb7d
Unicode fixes
Jed- Dec 16, 2024
5b28bc4
Merge branch 'main' into text
Jed- Jan 19, 2025
a47b387
Post-merge fixes
Jed- Jan 19, 2025
2c866f6
Don't draw an outline around the text cursor
Jed- Jan 19, 2025
03e1510
Rename variables, document function parameters
Jed- Jan 19, 2025
5e4e3c7
Don't depend on cairo 1.18
Jed- Jan 19, 2025
7e796ff
Fix UI input fields and cursor blink
Jed- Jan 20, 2025
60035fd
Add arguments to `uijustify` and `uinofallback` so they can be more e…
Jed- Jan 23, 2025
d5e680a
Remove duplicate command
Jed- Jan 23, 2025
6ae5a62
Unicode cleanup
Jed- Jan 23, 2025
e9d3e76
Clean up `homoglyph()` function and add a script to generate it from …
Jed- Jan 23, 2025
fbd4a6e
Remove the built-in text editor
Jed- Feb 4, 2025
9a4390c
Merge remote-tracking branch 'upstream/main' into text
Jed- Feb 4, 2025
843fdc3
Update Makefile
Jed- Feb 4, 2025
e57fd15
Loading screen fix
Jed- Feb 4, 2025
1cd6a46
Remove usage of `tabify`
Jed- Feb 4, 2025
e0d2b10
Depend on `pango >= 1.56` and remove dependency on `fontconfig`
Jed- Feb 4, 2025
b9d32a7
Remove redundant include
Jed- Feb 4, 2025
32b6e6c
Merge branch 'main' into text
Jed- Feb 14, 2025
93d95ea
Update Makefile
Jed- Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions config/font.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@

// Execute dedicated game fonts here
// Configure dedicated game fonts here

loopfiles f "data/interface/font" cfg [
exec (+s "data/interface/font/" $f ".cfg")
loopfiles f "data/interface/font" "ttf" [
registerfont (+s "data/interface/font/" $f ".ttf")
]

// Change the two following lines to define default font
fontalias "default" "main"
fontalias "default.ol" "main.ol"
// font "name" "family name"
// fontweight -3..6 // < 0 = thinner, > 0 = thicker
// fontstretch -4..4 // < 0 = tighter, > 0 = wider ; many fonts don't support this
// fontstyle 0|1|2 // 0 = normal, 1 = oblique, 2 = italic
// fontsmallcaps 0|1
// fontfeatures [...features] // OpenType features (in CSS format)
// fontvariations "variations" // for variable fonts; format: "AXIS1=VALUE,AXIS2=VALUE..."

// Shorthand aliases
fontalias "def" "default"
fontalias "def.ol" "default.ol"
font "default" "Inter Variable, Sans"
fontfeatures ["ss04", "cv12", "cv13", "tnum"]
font "mono" "Roboto Mono, Monospace"
font "bold" "Jura, Inter Variable, Sans"
fontfeatures ["liga", "calt", "zero"]
fontweight 3
font "wide" "Tektur, Inter Variable, Sans"
font "modernpics" "ModernPictograms"

uiFontList = [ default mono bold wide modernpics ]
9 changes: 3 additions & 6 deletions config/glsl/hud.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@ shader 0 "hudtext" [
colorscale = vcolor;
}
] [
uniform sampler2D tex0;
uniform vec4 textparams;
uniform sampler2DRect tex0;
varying vec2 texcoord0;
varying vec4 colorscale;
fragdata(0) vec4 fragcolor;
void main(void)
{
float dist = texture2D(tex0, texcoord0).r;
float border = smoothstep(textparams.x, textparams.y, dist);
float outline = smoothstep(textparams.z, textparams.w, dist);
fragcolor = vec4(colorscale.rgb * outline, colorscale.a * border);
fragcolor = colorscale * texture2DRect(tex0, texcoord0);
if(fragcolor.a != 0) fragcolor.rgb /= fragcolor.a;
}
]

Expand Down
9 changes: 3 additions & 6 deletions config/glsl/particle.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,14 @@ shader 0 "particletext" [
color = vec4(vcolor.rgb * ldrscale, vcolor.a);
}
] [
uniform vec4 textparams;
uniform sampler2D tex0;
uniform sampler2DRect tex0;
varying vec4 color;
varying vec2 texcoord0;
fragdata(0) vec4 fragcolor;
void main(void)
{
float dist = texture2D(tex0, texcoord0).r;
float border = smoothstep(textparams.x, textparams.y, dist);
float outline = smoothstep(textparams.z, textparams.w, dist);
fragcolor = vec4(color.rgb * outline, color.a * border);
fragcolor = color * texture2DRect(tex0, texcoord0);
if(fragcolor.a != 0) fragcolor.rgb /= fragcolor.a;
}
]

Expand Down
4 changes: 2 additions & 2 deletions config/ui/hud/editstats.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ uiLiteMenu "edithud" [
uigrid 2 $uiPad:3XL $uiPad:L [
uihlist $uiPad:XL [
uitext "WTR" 0.5
uitext (tabify (format "%1k" $editstatwtr) 1) 0.5
uitext (tabify (format "(%1%%)" $editstatvtr) 2) 0.5
uitext (format "%1k^t" $editstatwtr) 0.5
uitext (format "(%1%%)^t^t" $editstatvtr) 0.5
]
uihlist $uiPad:XL [
uitext "WVT" 0.5
Expand Down
8 changes: 5 additions & 3 deletions config/ui/hud/gamehud.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1135,12 +1135,12 @@ newui "scoreboard" [
uispace $uiPad:M $uiPad:M- [
uiFancyText "wide" @@@(
at "FFA Aesir Vanir" $arg1
) 1.4 @@@(INT:TRANS (
) 1.25 @@@(INT:TRANS (
at [0x40D060 0x4060D0 0xD04040] $arg1
) % 80)
] ; uialign- @@(? $bflip 1 -1) -1
uispace $uiPad:O5 (*f $uiPad:O5 2.9) [
uiFancyText "wide" (getteamscore @@@arg1) 1 @@@(
uiFancyText "wide" (getteamscore @@@arg1) 0.85 @@@(
at [0x40D060 0x4060D0 0xD04040] $arg1
)
] ; uialign- @@(? $bflip -1 1) -1
Expand Down Expand Up @@ -1300,7 +1300,9 @@ newui "scoreboard" [
uiFastImg (fade (? $arg1 0.5 0.25)) "hud/" "shelf" "" $uiPad:5XL
uiFastImg <mad:.18/.18/.18> "hud/" "glow" "" $uiPad:5XL
push n (+ $n 1) [
uifontcolortext "def.ol" $n (|A! (? $arg1 0xB0 0x60)) 0.55
uifontoutline 1 0x7F [
uifontcolortext "default" $n (|A! (? $arg1 0xB0 0x60)) 0.55
]
]
] ; uialign- -1
]
Expand Down
4 changes: 3 additions & 1 deletion config/ui/hud/geo_prefab.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ uiLiteMenu "geo_prefab" [
uiclamp*e
uispace $uiPad:S $uiPad:O3 [
uialign -1 -1
uifontcolortext "def.ol" $i (|A! 0x98) 0.55
uifontoutline 1 0x7F [
uifontcolortext "default" $i (|A! 0x98) 0.55
]
]
uihover [
if (!= $i $.UI_obrsel) [
Expand Down
8 changes: 4 additions & 4 deletions config/ui/hud/mapmodel_browser.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ uiLiteMenu "mapmodel_browser" [
uimodelpreview (mapmodelname $i 1) "mapmodel"
uiclamp*e
uispace $uiPad:S $uiPad:O3 [
uifonttext "def.ol" $i 0.55
uifontoutline 1 0x7F [ uifonttext "default" $i 0.55 ]
] ; uialign- -1 -1
if (iskeyheld "LSHIFT") [
uispace $uiPad:S 0 [
uifonttext "modernpics.ol" "R" 0.65
uifontoutline 1 0x7F [uifonttext "modernpics" "R" 0.65 ]
] ; uialign- -1 1
uirelease [ clearmodel (+s "mapmodel/" (mapmodelname $i)) ]
] [
Expand All @@ -77,14 +77,14 @@ uiLiteMenu "mapmodel_browser" [
uimodelpreview (mapmodelname $i 1) "mapmodel"
uiclamp*e
uispace $uiPad:S $uiPad:O3 [
uifontcolortext "def.ol" $i (|A! 0xA0) 0.55
uifontoutline 1 0x7F [ uifontcolortext "default" $i (|A! 0xA0) 0.55 ]
] ; uialign- -1 -1
uihover [ .mm_selidx = $n ; uiSetMillis ]
uioutline $c_line1 $.z $.z
]
if (mapmodelloaded $i) [
uispace $uiPad:S $uiPad:O3 [
uifonttext "modernpics.ol" "%" 0.55
uifontoutline 1 0x7F [ uifonttext "modernpics" "%" 0.55 ]
] ; uialign- 1 -1
]
uiHoverOnce [ uiHoverSound ]
Expand Down
10 changes: 7 additions & 3 deletions config/ui/hud/texture_browser.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ uiLiteMenu "texture_browser" [
]
uispace $uiPad:S $uiPad:O3 [
uialign -1 -1
uifontcolortext "def.ol" $i (|A! 0x98) 0.55
uifontoutline 1 0x7F [
uifontcolortext "default" $i (|A! 0x98) 0.55
]
]
]
uipress [ uiSetMillis ]
Expand Down Expand Up @@ -83,7 +85,7 @@ uiLiteMenu "texture_browser" [
uiclip 0 $uiPad:6XL [ uicolortext "/" $c_gray 1.2 ]
] // text takes up a lot of vertical space, have to "cut" it
uifill $uiPad:DXS 0 [
uifonttext "def.ol" (max $.tb_totalpg 1) 0.7
uifonttext "mono" (max $.tb_totalpg 1) 0.7
uialign- -1 1
]
uiclamp*y
Expand All @@ -110,7 +112,9 @@ uiLiteMenu "texture_browser" [
uislotview $i
uiclamp*e
uispace $uiPad:S $uiPad:O3 [
uifontcolortext "def.ol" $i (|A! 0xA0) 0.55
uifontoutline 1 0x7F [
uifontcolortext "default" $i (|A! 0xA0) 0.55
]
] ; uialign- -1 -1
uirelease [
settex (getslottex $i)
Expand Down
82 changes: 52 additions & 30 deletions config/ui/lib.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -810,23 +810,21 @@ uiButton = [

// uiFancyText FONT TEXT SIZE 0xCOLOR TRANSPARENCY
uiFancyText = [
if (=s $arg1 "") [ arg1 = "def" ]
if (=s $arg1 "") [ arg1 = "default" ]
if $arg4 [] [ arg4 = $c_white ]
if (< $numargs 5) [ arg5 = 1 ]
uigroup [
uioffset $uiPad:O1- $uiPad:O1 [
uifontcolortext [@arg1.ol] (stripcolors $arg2) (|A (*fA $arg5 0x20)) $arg3
uifontcolortext $arg1 (stripcolors $arg2) (|A (*fA $arg5)) $arg3
]
uioffset $uiPad:O1 $uiPad:O1- [
uifontcolortext $arg1 $arg2 (|A (*fA $arg5) $arg4) $arg3
uifont $arg1 [
uifontoutline 1 0x20 [
uishadow 255 [
uicolortext $arg2 (|A (*fA $arg5) $arg4) $arg3
]
]
]
]

// uiEmbossText FONT TEXT SIZE 0xCOLOR
uiEmbossText = [
if (=s $arg1 "") [ arg1 = "def" ]
if (=s $arg1 "") [ arg1 = "default" ]
uigroup [
uioffset $uiPad:O2- $uiPad:O2 [
uifontcolortext $arg1 (stripcolors $arg2) 0 $arg3
Expand Down Expand Up @@ -866,9 +864,11 @@ uiVerSld = [
uiclamp*x
]
] ; uiclamp-x
uivlist $uiPad:M- [
loop i (strlen $arg6) [
uifontcolortext "def.ol" (substr $arg6 $i 1) (|A! (? $arg9 0xA0 0x60)) 0.65
uifontoutline 1 0xFF [
uivlist $uiPad:M- [
loop i (strlen $arg6) [
uifontcolortext "default" (substr $arg6 $i 1) (|A! (? $arg9 0xA0 0x60)) 0.65
]
]
]
]
Expand Down Expand Up @@ -897,7 +897,9 @@ uiHorSld = [
uiclamp*y
]
] ; uiclamp-y
uifontcolortext "def.ol" $arg6 (|A! (? $arg9 0xA0 0x60)) 0.65
uifontoutline 1 0xFF [
uifontcolortext "default" $arg6 (|A! (? $arg9 0xA0 0x60)) 0.65
]
]
uiclamp*e
]
Expand Down Expand Up @@ -925,9 +927,11 @@ uiVerColorSld = [
uiclamp*x
]
] ; uiclamp-x
uivlist $uiPad:M- [
loop i (strlen $$arg1) [
uifontcolortext "wide.ol" (substr $$arg1 $i 1) (|A! (? $arg9 0xA0 0x60)) 0.7
uifontoutline 1 0xFF [
uivlist $uiPad:M- [
loop i (strlen $$arg1) [
uifontcolortext "wide" (substr $$arg1 $i 1) (|A! (? $arg9 0xA0 0x60)) 0.7
]
]
]
]
Expand Down Expand Up @@ -957,7 +961,9 @@ uiHorColorSld = [
uiclamp*y
]
] ; uiclamp-y
uifontcolortext "wide.ol" $$arg1 (|A! (? $arg9 0xA0 0x60)) 0.7
uifontoutline 1 0xFF [
uifontcolortext "wide" $$arg1 (|A! (? $arg9 0xA0 0x60)) 0.7
]
]
uiclamp*e
]
Expand Down Expand Up @@ -1185,6 +1191,7 @@ uiEntColor24B = [
uioutline (? $isfocused $c_red $c_line1)
uipress [
local newvarcur
resetcursorblink
newvarcur = (escape (+s "#" $type "bind" " " $action))
if (=s $newvarcur $.UI_KBvarcur) [
(+s $type "bind") MOUSELEFT $action
Expand All @@ -1207,6 +1214,7 @@ uiEntColor24B = [
.UI_KBvarcur = ""
] [
if (!=s "MOUSELEFT" $uikeycode) [
resetcursorblink
(+s $type "bind") $uikeycode $action
] [
.UI_KBvarcur = ""
Expand Down Expand Up @@ -1296,6 +1304,7 @@ uiKeyField = [
uitarget $width 0 [
uioutline (? $isfocused $c_red $c_line1)
uipress [
resetcursorblink
if (< $uicursorindex 0) [
.UI_KBcaret = 0
] [
Expand All @@ -1314,6 +1323,7 @@ uiKeyField = [
.UI_KBcaret = -1
uisettextinput 0
] [
resetcursorblink
cases $uikeycode "DELETE" [
$.UI_KBvarcur = (clamp (.delzeroes (strsplice $$.UI_KBvarcur "" $.UI_KBcaret 1)) $min_ $max_)
do $onchange
Expand Down Expand Up @@ -1427,12 +1437,12 @@ uiTextField = [
uitarget $width 0 [
uioutline (? $isfocused $c_red $c_line1)
uipress [
resetcursorblink
if (< $uicursorindex 0) [
.UI_KBcaret = (? (> $align 0) 0 (strlen $$var))
.UI_KBcaret = (? (> $align 0) 0 (char2byteindex $$var (strlen $$var)))
] [
.UI_KBcaret = (? (> (strlen $$var) 0) $uicursorindex 0)
]

.UI_KBvarcur = $arg1
]

Expand All @@ -1448,37 +1458,49 @@ uiTextField = [
.UI_KBcaret = -1
uisettextinput 0
] [
resetcursorblink
cases $uikeycode "DELETE" [
$.UI_KBvarcur = (strsplice $$.UI_KBvarcur "" $.UI_KBcaret 1)
$.UI_KBvarcur = (strsplice $$.UI_KBvarcur "" (byte2charindex $$.UI_KBvarcur $.UI_KBcaret) 1)
do $onchange
] "BACKSPACE" [
if (> $.UI_KBcaret 0) [
$.UI_KBvarcur = (strsplice $$.UI_KBvarcur "" (- $.UI_KBcaret 1) 1)
-- .UI_KBcaret
local ix_c
ix_c = (byte2charindex $$.UI_KBvarcur $.UI_KBcaret)
$.UI_KBvarcur = (strsplice $$.UI_KBvarcur "" (- $ix_c 1) 1)
.UI_KBcaret = (char2byteindex $$.UI_KBvarcur (- $ix_c 1))
]
do $onchange
] "LEFT" [
// move cursor to the left by 1 character (not byte!)
if (> $.UI_KBcaret 0) [
-- .UI_KBcaret
local ix_c
ix_c = (byte2charindex $$.UI_KBvarcur $.UI_KBcaret)
.UI_KBcaret = (char2byteindex $$.UI_KBvarcur (- $ix_c 1))
]
] "RIGHT" [
if (&& [>= $.UI_KBcaret 0] [< $.UI_KBcaret (strlen $$.UI_KBvarcur)]) [
++ .UI_KBcaret
// move cursor to the right by 1 character (not byte!)
if (&& [>= $.UI_KBcaret 0] [< (byte2charindex $$.UI_KBvarcur $.UI_KBcaret) (strlen $$.UI_KBvarcur)]) [
local ix_c
ix_c = (byte2charindex $$.UI_KBvarcur $.UI_KBcaret)
.UI_KBcaret = (char2byteindex $$.UI_KBvarcur (+ $ix_c 1))
]
] () [
local inputlen pastestr
local inputlen pastestr pastebytelen
if (&& [=s "V" $uikeycode] [|| [iskeyheld "LCTRL"] [iskeyheld "RCTRL"]]) [ // CTRL-V
inputlen = (clamp (strlen $getclipboard) 0 (- $maxstrlen (strlen $$.UI_KBvarcur)))
pastestr = (substr $getclipboard 0 $inputlen)
$.UI_KBvarcur = (substr (strsplice $$.UI_KBvarcur $pastestr $.UI_KBcaret 0) 0 $maxstrlen)
.UI_KBcaret = (min $maxstrlen (+ $.UI_KBcaret $inputlen))
pastebytelen = (strbytelen $pastestr)
$.UI_KBvarcur = (strsplice $$.UI_KBvarcur $pastestr (byte2charindex $$.UI_KBvarcur $.UI_KBcaret) 0)
.UI_KBcaret = (+ $.UI_KBcaret $pastebytelen)
do $onchange
] [
if (&& [!=s "" $uitextinput] [< (strlen $$.UI_KBvarcur) $maxstrlen]) [
inputlen = (strlen $uitextinput)
$.UI_KBvarcur = (substr (strsplice $$.UI_KBvarcur $uitextinput $.UI_KBcaret 0) 0 $maxstrlen)
.UI_KBcaret = (min $maxstrlen (+ $.UI_KBcaret $inputlen))
$.UI_KBvarcur = (substr (strsplice $$.UI_KBvarcur $uitextinput (byte2charindex $$.UI_KBvarcur $.UI_KBcaret) 0) 0 $maxstrlen)
.UI_KBcaret = (char2byteindex $$.UI_KBvarcur (min $maxstrlen (+ (byte2charindex $$.UI_KBvarcur $.UI_KBcaret) $inputlen)))

do $onchange

]
]
]
Expand Down
4 changes: 3 additions & 1 deletion config/ui/libnew.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ uiSliderH = [
uiFastImgStretched "" "shadow2" "" "" [ uiclamp.x ]
uiclamp*e
if $arg9 [ arg10 = 0xA0FFFFFF ] [ arg10 = 0x60FFFFFF ]
uiFontColorText "def.ol" $arg6 0.65 $arg10
uifontoutline 1 0xFF [
uiFontColorText "default" $arg6 0.65 $arg10
]
] ; uiclamp-y
]
] ; uiclamp-y
Expand Down
2 changes: 1 addition & 1 deletion config/ui/menus/server_browser.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ uiServer = [
uigroup [
uifill $uiPad:DS
uiimage (+s "data/interface/ui/" (servinfomastermodeicon $arg1) ".png") $uiPad:DSS $uiPad:DSS
uispace 0 $uiPad:L [ uifonttext "wide.ol" (servinfomodename $arg1) 0.5 ]
uispace 0 $uiPad:L [ uifontoutline 1 0x7F [ uifonttext "wide" (servinfomodename $arg1) 0.5 ] ]
uialign- 0 1
]
uivlist $uiPad:S [
Expand Down
Loading