1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Rewrite the gamebar (#13768)

This commit is contained in:
Gregor Parzefall
2023-09-02 23:02:02 +02:00
committed by GitHub
parent 294ad98776
commit 83b85ba16a
4 changed files with 108 additions and 150 deletions

View File

@@ -81,9 +81,8 @@ function singleplayer_refresh_gamebar()
end
end
local btnbar = buttonbar_create("game_button_bar",
game_buttonbar_button_handler,
{x=0,y=7.475}, "horizontal", {x=15.5,y=1.25})
local btnbar = buttonbar_create("game_button_bar", {x = 0, y = 7.475},
{x = 15.5, y = 1.25}, "#000000", game_buttonbar_button_handler)
for _, game in ipairs(pkgmgr.games) do
local btn_name = "game_btnbar_" .. game.id