Skip to content
Snippets Groups Projects
Commit 5ea09bda authored by DarkGod's avatar DarkGod
Browse files

ahah woopso

parent 7d4c1fd0
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ function _M:init()
-- if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("http://google.com") end} end
-- if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("asset://te4/html/test.html") end} end
self.c_background = Checkbox.new{title="Disable animated background", checked=game.stopped and true or false, on_change=function() self:switchBackground() end}
self.c_background = Checkbox.new{title="Disable animated background", default=config.settings.boot_menu_background and true or false, on_change=function() self:switchBackground() end}
-- self.c_background = Button.new{text=game.stopped and "Enable background" or "Disable background", fct=function() self:switchBackground() end}
self.c_version = Textzone.new{font={FontPackage:getFont("default"), 10}, auto_width=true, auto_height=true, text=("#{bold}##B9E100#T-Engine4 version: %d.%d.%d"):format(engine.version[1], engine.version[2], engine.version[3])}
......@@ -312,8 +312,6 @@ end
function _M:switchBackground()
game.stopped = not game.stopped
game:saveSettings("boot_menu_background", ("boot_menu_background = %s\n"):format(tostring(game.stopped)))
self.c_background.text = game.stopped and "Enable background" or "Disable background"
self.c_background:generate()
if game.stopped then
core.game.setRealtime(0)
......
......@@ -977,7 +977,7 @@ void do_move(int w, int h) {
start_xpos = w;
start_ypos = h;
} else {
w = start_xpos;
// w = start_xpos;
h = start_ypos;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment