1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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