@@ -183,9 +183,10 @@ function TaxHUD:saveLayout()
183183 if not path then return end
184184 local xml = XMLFile .create (" tax_hud" , path , " hudLayout" )
185185 if xml then
186- xml :setFloat (" hudLayout.posX" , self .posX )
187- xml :setFloat (" hudLayout.posY" , self .posY )
188- xml :setFloat (" hudLayout.scale" , self .scale )
186+ xml :setFloat (" hudLayout.posX" , self .posX )
187+ xml :setFloat (" hudLayout.posY" , self .posY )
188+ xml :setFloat (" hudLayout.scale" , self .scale )
189+ xml :setBool (" hudLayout.visible" , self .visible )
189190 xml :save ()
190191 xml :delete ()
191192 end
@@ -196,9 +197,10 @@ function TaxHUD:loadLayout()
196197 if not path or not fileExists (path ) then return end
197198 local xml = XMLFile .load (" tax_hud" , path )
198199 if xml then
199- self .posX = xml :getFloat (" hudLayout.posX" , self .posX )
200- self .posY = xml :getFloat (" hudLayout.posY" , self .posY )
201- self .scale = xml :getFloat (" hudLayout.scale" , self .scale )
200+ self .posX = xml :getFloat (" hudLayout.posX" , self .posX )
201+ self .posY = xml :getFloat (" hudLayout.posY" , self .posY )
202+ self .scale = xml :getFloat (" hudLayout.scale" , self .scale )
203+ self .visible = xml :getBool (" hudLayout.visible" , self .visible )
202204 xml :delete ()
203205 end
204206end
0 commit comments