Skip to content

Commit

Permalink
improve: remove unnecessary spaces from mod/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored Nov 28, 2023
1 parent fe2b17b commit 8e5032d
Show file tree
Hide file tree
Showing 206 changed files with 1,731 additions and 1,988 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Services = {

g_app.setName("OTClient - Redemption");
g_app.setCompactName("otclient");
g_app.setOrganizationName("otcr");
g_app.setOrganizationName("otbr");

g_app.hasUpdater = function()
return (Services.updater and Services.updater ~= "" and g_modules.getModule("updater"))
Expand Down
6 changes: 3 additions & 3 deletions mods/client_profiles/profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ end

function setProfileOption(index)
local currentProfile = g_settings.getNumber('profile')
currentProfile = tostring(currentProfile)
currentProfile = tostring(currentProfile)
index = tostring(index)

if currentProfile ~= index then
Expand Down Expand Up @@ -114,7 +114,7 @@ function onProfileChange(offline)

local currentProfile = g_settings.getNumber('profile')
local index = g_game.getCharacterName()

if index then
settings[index] = currentProfile
save()
Expand Down Expand Up @@ -157,4 +157,4 @@ function save()
"Something went wrong, file is above 100MB, won't be saved")
end
g_resources.writeFileContents(file, result)
end
end
2 changes: 1 addition & 1 deletion mods/client_profiles/profiles.otmod
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Module
scripts: [ profiles ]
sandboxed: true
@onLoad: init()
@onUnload: terminate()
@onUnload: terminate()
9 changes: 4 additions & 5 deletions mods/client_textedit/textedit.otui
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ TextEditWindow < MainWindow
layout:
type: verticalBox
fit-children: true

Label
id: description
text-align: center
margin-bottom: 5
visible: false
text-wrap: true
text-auto-resize: true

ComboBox
id: examples
margin-bottom: 5
Expand All @@ -42,7 +42,7 @@ SinglelineTextEditWindow < TextEditWindow

TextEdit
id: text

TextEditButtons

MultilineTextEditWindow < TextEditWindow
Expand Down Expand Up @@ -70,6 +70,5 @@ MultilineTextEditWindow < TextEditWindow
anchors.right: parent.right
pixels-scroll: true
step: 10

TextEditButtons

TextEditButtons
Loading

0 comments on commit 8e5032d

Please sign in to comment.