From fb6f67eee462340e52b887f7d907bae8457cf913 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Thu, 21 Dec 2023 22:36:18 +0000 Subject: [PATCH] Fixed double load messages --- Balloon.lua | 6 ++---- ui.lua | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Balloon.lua b/Balloon.lua index c2a6cb1..cfe64b2 100644 --- a/Balloon.lua +++ b/Balloon.lua @@ -574,16 +574,14 @@ ashita.events.register('load', 'balloon_load', function() balloon.settings = settings.load(default_settings) balloon.last_frame_time = os.clock() - balloon.initialize() + -- balloon.initialize() -- Register for future settings updates settings.register('settings', 'balloon_settings_update', function(s) if (s ~= nil) then balloon.settings = s + balloon.initialize() end - - --settings.save() - balloon.initialize() end) end) diff --git a/ui.lua b/ui.lua index 243d36c..cf60e67 100644 --- a/ui.lua +++ b/ui.lua @@ -4,10 +4,8 @@ local C = ffi.C local d3d8dev = d3d.get_device() local gdi = require('gdifonts.include') -local encoding = require('gdifonts.encoding') local PI2 = math.pi*2 -local d3dwhite = d3d.D3DCOLOR_ARGB(255, 255, 255, 255) local ui = {}