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

stress test webcore

parent c3221341
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,9 @@ core.display.setGamma(config.settings.gamma_correction / 100)
if not config.settings.fbo_active then core.display.disableFBO() print("Disabling FBO") end
if not config.settings.shaders_active then core.shader.disable() print("Disabling Shaders") end
-- Disable webcore if no fbo, it probably means the card wont handle will the huge buffers anyway
if not core.display.FBOActive() then core.webview = nil end
-- Webcore local request resolver
dofile("/engine/webcore.lua")
......
......@@ -57,7 +57,19 @@ function _M:init()
l[#l+1] = {name="Credits", fct=function() game:registerDialog(require("mod.dialogs.Credits").new()) end}
l[#l+1] = {name="Exit", fct=function() game:onQuit() end}
if config.settings.cheat then l[#l+1] = {name="Reboot", fct=function() util.showMainMenu() end} end
if config.settings.cheat then l[#l+1] = {name="webtest", fct=function() util.browserOpenUrl("http://tometips.github.io/#talents/") end} end
if config.settings.cheat then l[#l+1] = {name="webtest", fct=function()
local tween = require "tween"
local i = 1
local function fct()
local d = Dialog:webPopup("http://google.com/")
d.__showup = nil
tween(1, {a=1}, {a=2}, 'linear', function()
game:unregisterDialog(d)
if i < 500 then i = i + 1 return fct() end
end)
end
fct()
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 = Button.new{text=game.stopped and "Enable background" or "Disable background", fct=function() self:switchBackground() end}
......
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