diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-07 18:18:19 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-07 18:18:19 -0500 |
commit | 9fc3105444643f48b727d86843b235e7237d7f62 (patch) | |
tree | b6a8022912c01174a1e581c7ab5f0371b72874e5 | |
parent | b4a526b4c060da15c5582340ad62f81caa6b16ce (diff) | |
download | celevator-9fc3105444643f48b727d86843b235e7237d7f62.tar celevator-9fc3105444643f48b727d86843b235e7237d7f62.tar.gz celevator-9fc3105444643f48b727d86843b235e7237d7f62.tar.bz2 celevator-9fc3105444643f48b727d86843b235e7237d7f62.tar.xz celevator-9fc3105444643f48b727d86843b235e7237d7f62.zip |
Add a star to the button for the main egress floor
-rw-r--r-- | controllerfw.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 4bd1e5d..b509df8 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -1362,7 +1362,8 @@ for i=1,floorcount,1 do local yp = (coprows-row+1)*1.25+1 local xp = col*1.25 local tex = mem.carcalls[i] and litimg or unlitimg - mem.copformspec = mem.copformspec..string.format("image_button[%f,%f;1.2,1.2;%s;carcall%d;%s;false;false;%s]",xp,yp,tex,i,minetest.formspec_escape(mem.params.floornames[i]),litimg) + local star = (i == (mem.params.mainlanding or 1) and "*" or "") + mem.copformspec = mem.copformspec..string.format("image_button[%f,%f;1.2,1.2;%s;carcall%d;%s;false;false;%s]",xp,yp,tex,i,minetest.formspec_escape(star..mem.params.floornames[i]),litimg) end local doxp = (copcols == 1) and 0.5 or 1.25 |