Skip to content

Commit

Permalink
Fix issues with classes formspec
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Dec 24, 2023
1 parent be85dd4 commit 2083e61
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
20 changes: 14 additions & 6 deletions mods/ctf/ctf_modes/ctf_mode_classes/classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,20 @@ function classes.show_class_formspec(player)
20 + 8,
c,
})
table.insert(out,
{"button_exit[%f,%f;%f,1;select_%s;%s]", pad + (((form_x-(pad*2 + bw))) * sect), form_y-0.5, bw, c, context.class_props[c].name}
)
table.insert(out,
{"image_button[%f,%f;1,1;settings_info.png;show_%s;]", pad + (((form_x-(pad*2 + bw))) * sect) + bw - 1, form_y-0.5, c}
)
table.insert(out, {
"button_exit[%f,%f;%f,1;select_%s;%s]",
pad + (((form_x-(pad*2 + bw))) * sect),
form_y-0.5,
bw,
c,
context.class_props[c].name,
})
table.insert(out, {
"image_button[%f,%f;1,1;settings_info.png;show_%s;]",
pad + (((form_x-(pad*2 + bw))) * sect) + bw - 1,
form_y-0.5,
c,
})
table.insert(out,
{"tooltip[show_%s;Click to show class info]", c}
)
Expand Down
3 changes: 3 additions & 0 deletions textures/license.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
BlockMen (CC BY-SA 3.0): (https://github.com/minetest/minetest_game/blob/110c23560edf5ddc7ed3ffd0d0c288a96e0343e8/mods/default/README.txt#L136C1-L136C25)
gui_formbg.png (Modified)

Zughy (CC BY-SA 4.0) (https://github.com/minetest/minetest/blob/46c930cf701087d63eb0e23fb403e45f2eb3966a/LICENSE.txt#L14)
settings_info.png
Binary file added textures/settings_info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2083e61

Please sign in to comment.