Skip to content

Commit dbcc887

Browse files
authored
Merge pull request #53 from wduda/develop
Merge for v1.0.9beta
2 parents 56aa31b + 4ad2ac0 commit dbcc887

10 files changed

+92
-167
lines changed

.github/workflows/release.yml

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
# This workflow will create the release artifact and a release on GitHub
2-
name: release
2+
name: GitHub release
33

44
on:
5-
# on push of new release tag to master
6-
#push:
7-
# branches:
8-
# - 'master'
9-
# tags:
10-
# - 'v*'
11-
# also allows job to be run manually from actions tab
5+
# allows job to be run manually from actions tab
126
workflow_dispatch:
137
inputs:
148
tag:
@@ -20,16 +14,20 @@ jobs:
2014

2115
steps:
2216
# checks out master under $GITHUB_WORKSPACE
23-
- uses: actions/checkout@v2
17+
- name: checkout
18+
uses: actions/checkout@v2
2419
with:
2520
ref: '${{ github.event.inputs.tag }}'
2621

27-
- name: get the version name from tag
28-
id: get_version
29-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
3022
# create a zip as a release archive
31-
# - name: create release archive
32-
# uses: thedoctor0/zip-release@master
33-
# with:
34-
# filename: 'TravelWindowII-${{ steps.get_version.outputs.version }}.zip'
35-
# exclusions: '*.git* .github* *.vscode* *.gitignore*'
23+
- name: create release archive
24+
uses: thedoctor0/zip-release@master
25+
with:
26+
filename: 'TravelWindowII-${{ github.event.inputs.tag }}.zip'
27+
exclusions: '*.git* .github* *.vscode* *.gitignore*'
28+
29+
- name: upload release archive
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: 'Release archive ${{ github.event.inputs.tag }}'
33+
path: 'TravelWindowII-${{ github.event.inputs.tag }}.zip'

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Changelog
22

33
## v1.0.9beta
4-
- automated builds for faster releases (internal)
4+
- fixed bug where pressing Esc did not close the options window (bugfix)
5+
- fixed bug where changing options was lagging the client, especially on chamging opacity sliders (bugfix)
6+
- automated github builds for faster releases (internal)
7+
- cleaned up settings stored by plugin to remove unused data (internal)
8+
- cleaned up some code for better readability (internal)
59

610
## v1.0.8beta
711
- made it so the plugin can attempt to import all settings from v1.06beta or earlier if new settings file is not present, so an import can be forced by deleting TravelWindowII.plugindata - see FAQ

TravelWindowII.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Information>
44
<Name>Travel Window II</Name>
55
<Author>Hyoss</Author>
6-
<Version>v1.0.8beta</Version>
6+
<Version>v1.0.9beta</Version>
77
<Description>
88
This plugin creates a single window that contains all the available travel skills, including the race, class and reputation skills.
99
It is a further development of Travel Window, that has been worked on by multiple authors before.

TravelWindowII.plugincompendium

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PluginConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<Id>1113</Id>
44
<Name>Travel Window II</Name>
5-
<Version>v1.0.8beta</Version>
5+
<Version>v1.0.9beta</Version>
66
<Author>Hyoss</Author>
77
<InfoUrl>http://www.lotrointerface.com/downloads/info1113</InfoUrl>
88
<DownloadUrl>http://www.lotrointerface.com/downloads/download1113</DownloadUrl>

doc/changelog.md

-34
This file was deleted.

doc/lotrointerface.md

+30-24
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
1-
This plugin creates a single window that contains all the available travel skills, including the race, class and reputation skills. It is a further development of Travel Window, that has been worked on by multiple authors before.
1+
This plugin creates a single window that contains available travel skills, including the race, class, housing and reputation skills. It is a further development of the "Travel Window" plugin, that has been worked on by multiple authors before.
22

3-
[B]Since this plugin is a replacement for Travel Window you should not have both enabled at the same time. You can keep them both installed though.[/B]
3+
[B]Since this plugin is a 100% replacement for "Travel Window" you should not have both enabled at the same time. You can keep them both installed though.[/B]
44

5-
Installation:
5+
[SIZE="3"]Installation:[/SIZE]
66
This is a full plugin and can be installed standalone. Follow the general plugin installation instructions to install Travel Window II or update the install (depends on your OS).
7-
I recommend you install and manage your plugins with the LOTRO Plugin Compendium found here, since it will install plugins cleanly and take care of installing the Turbine utilities for you: [URL="http://www.lotrointerface.com/downloads/info663-LOTROPluginCompendium.html"]http://www.lotrointerface.com/downloads/info663-LOTROPluginCompendium.html[/URL]
7+
I recommend you install and manage your plugins with the LOTRO Plugin Compendium found at this URL, since it will install plugins cleanly and take care of installing the Turbine utilities for you: [URL="http://www.lotrointerface.com/downloads/info663-LOTROPluginCompendium.html"]LOTRO Plugin Compendium App[/URL]
88

99
If you do not use Plugin Compendium, you need to manually install Turbine utilities that are available at:
1010
[URL="http://content.turbine.com/sites/lotro/lua/Beta_LuaPlugins.7z"]http://content.turbine.com/sites/lotro/lua/Beta_LuaPlugins.7z[/URL]
1111
This has to be extracted to your "Documents\The Lord of the Rings Online\Plugins" folder (if you are on Windows) so two folders called Turbine and TurbinePlugins show up there.
1212

13+
[SIZE="3"]FAQ:[/SIZE]
14+
How to handle the settings reset introduced by v1.0.7beta?
15+
[LIST]
16+
[*] if you had v1.0.6beta or earlier and update to v1.0.8beta or newer, you will keep your settings, but enable/disable and sorting will have to be reset - this is the best case where most settings can be kept
17+
[*] if you updated to v.1.0.7beta but never logged that character in, an update to v1.0.8beta or newer will work as the above best case
18+
[*] if you updated to v.1.0.7beta and logged that character in, you lost all settings, you now have two choices
19+
[*]1. keep the settings you made manually after logging in with v1.0.7beta installed
20+
[*]2. delete the TravelWindowII.plugindata file, and your settings from before will be imported by v1.0.8beta or newer, same as the best-case scenario
21+
[*]The file can be found at C:\Users\%USERNAME%\Documents\The Lord of the Rings Online\PluginData\%ACCOUNTNAME%\%SERVERNAME%\%CHARACTERNAME%
22+
[/LIST]
23+
Why does my racial skill show up even though I do not have the racial trait equipped?
24+
[LIST]
25+
[*]Because once the trait is aquired, it is classified as a "learned" skill by LOTRO itself, even though it is greyed out. Travel Window II, unfortunately, has no way of knowing if you have the racial trait equipped and the skill is usable. If you are not using the skill permanently, you can use the Enable/Disable options to hide it like any other skill.
26+
[/LIST]
27+
Why does a reputation or store version of my racial skill show up even though I have not obtained or bought it?
28+
[LIST]
29+
[*]This is because the racial and those store-bought skills have identical names ingame (i.e. "Return to Bree") and the plugin obtains a list of learned skills that includes that name at least once. Based on that name alone the plugin cannot know which of the two skills you have obtained, while you can get both through Racial+Store combo. You can use the Enable/Disable options to hide the skill you do not have that is greyed out.
30+
[/LIST]
1331

1432
Version history:
15-
v1.0.7beta
16-
[SIZE="1"]- changed enabled/disabled function to identify skills by ID - fixes problems with skills sharing names, like racial/rep, map home/Beorning racial (bugfix) closes #25 #17
17-
- changed sorting identify skills by ID - sorting will now work and save its settings properly (bugfix) closes #15
18-
- fixed wrong order of milestone skills (bugfix) closes #9
19-
- made it so Travel Window II has its own config file - settings will reset once! (enhancement)
20-
- verified all 151 skills in English client, fixed 7 broken skills, with some fixed by Drono
21-
- verified all 151 skills in German client, fixed 41 broken skills
22-
- verified all 151 skills in German client, fixed 74 (!) broken skills, with some help from Adra
23-
- updated English localization (enhancement)
24-
- updated French localization thanks to Adra (enhancment)
25-
- updated German localization (enhancement)
26-
- reduced code duplication in indexedDictionaries so future development will become easier (internal)
27-
[/SIZE]
28-
29-
30-
v1.0.6beta
31-
[SIZE="1"]- Plugin Compendium will now install Turbine libraries if they are not installed yet when you install Travel Window (enhancement)
32-
- changed Shire and Rivendell skill labels to be closer to user expectations (they are now Shire (Store), Shire (Racial), Rivendell (Store)) (bugfix)
33-
- fixed Premium house skill in German client (bugfix)
34-
- fixed about 30 skills in German client that were not working before (bugfix)
33+
v1.0.9beta
34+
[SIZE="1"]
35+
- fixed bug where pressing Esc did not close the options window (bugfix)
36+
- fixed bug where changing options was lagging the client, especially on chamging opacity sliders (bugfix)
37+
- automated github builds for faster releases (internal)
38+
- cleaned up settings stored by plugin to remove unused data (internal)
39+
- cleaned up some code for better readability (internal)
3540
[/SIZE]
3641

42+
Rest of changelog found [URL="https://github.com/wduda/TravelWindowII/blob/master/CHANGELOG.md"]here[/URL].

src/OptionsPanel.lua

+7-9
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ function OptionsPanel:Constructor(parent)
2727
self.checks = {};
2828
self.mainWindow = parent;
2929

30-
-- store race to only add racial skill that applies
31-
self.racetype = parent.racetype;
32-
3330
-- keep track of which item is selected on the sort tab
3431
self.sortSelectedIndex = 1;
3532
self.sortMaxItem = 0;
@@ -333,8 +330,8 @@ function OptionsPanel:AddGeneralItems()
333330

334331
-- do updates
335332
settings.toggleMinOpacity = self.toggleMinScrollBar:GetValue() / 100;
336-
self.mainWindow:UpdateSettings();
337333
self.mainWindow:UpdateOpacity();
334+
self.mainWindow:UpdateSettings();
338335
end
339336

340337
self.toggleMaxScrollBar.ValueChanged = function(sender, args)
@@ -346,8 +343,9 @@ function OptionsPanel:AddGeneralItems()
346343

347344
-- do updates
348345
settings.toggleMaxOpacity = self.toggleMaxScrollBar:GetValue() / 100;
349-
self.mainWindow:UpdateSettings();
350346
self.mainWindow:UpdateOpacity();
347+
self.mainWindow:UpdateSettings();
348+
351349
end
352350

353351
-- update settings when sliders change
@@ -360,8 +358,8 @@ function OptionsPanel:AddGeneralItems()
360358

361359
-- do updates
362360
settings.mainMinOpacity = self.mainMinScrollBar:GetValue() / 100;
363-
self.mainWindow:UpdateSettings();
364361
self.mainWindow:UpdateOpacity();
362+
self.mainWindow:UpdateSettings();
365363
end
366364

367365
self.mainMaxScrollBar.ValueChanged = function(sender, args)
@@ -373,8 +371,8 @@ function OptionsPanel:AddGeneralItems()
373371

374372
-- do updates
375373
settings.mainMaxOpacity = self.mainMaxScrollBar:GetValue() / 100;
376-
self.mainWindow:UpdateSettings();
377374
self.mainWindow:UpdateOpacity();
375+
self.mainWindow:UpdateSettings();
378376
end
379377
end
380378

@@ -419,10 +417,10 @@ function OptionsPanel:AddItems()
419417
counter = counter + 1;
420418
end
421419
end
422-
420+
423421
-- add the race specific travel skill for the character
424422
if (playerAlignment == Turbine.Gameplay.Alignment.FreePeople) then
425-
self:AddSkillItemForEnabling(counter, racialLocations:IdAtIndex(self.racetype), racialLocations:LabelAtIndex(self.racetype));
423+
self:AddSkillItemForEnabling(counter, racialLocations:IdAtIndex(settings.playerRaceKey), racialLocations:LabelAtIndex(settings.playerRaceKey));
426424
counter = counter + 1;
427425
end
428426

src/OptionsWindow.lua

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ function OptionsWindow:Constructor(parent)
3434
-- set the window to be visible
3535
self:SetVisible(true);
3636

37-
-- store race to only add racial skill that applies
38-
self.racetype = parent.racetype;
39-
4037
-- have the main window close the options
4138
self.VisibleChanged = function(sender, args)
4239
if (self:IsVisible() == false) then

src/SettingsMenu.lua

+5-8
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ function SettingsMenu:Constructor(parentWindow)
1414
togglebit = TravelWindowII.togglebit;
1515

1616
-- set the default values
17-
self.race = 1;
18-
self.class = 1;
1917
self.mode = 1;
2018
self.filters = 0x0F;
2119

@@ -147,15 +145,13 @@ end
147145

148146
-- get the setting from the main window
149147
function SettingsMenu:GetSettings()
150-
return self.race, self.class, self.mode, self.filters;
148+
return self.mode, self.filters;
151149
end
152150

153151
-- function to change the settings of the menu programmatically
154-
function SettingsMenu:SetSettings(s1, s2, s3, s4)
155-
self.race = s1;
156-
self.class = s2;
157-
self.mode = s3;
158-
self.filters = s4;
152+
function SettingsMenu:SetSettings(s1, s2)
153+
self.mode = s1;
154+
self.filters = s2;
159155

160156
self:SetSelections();
161157
end
@@ -200,6 +196,7 @@ function SettingsMenu:Update(string)
200196

201197
-- update the main window settings
202198
self.parent:UpdateSettings();
199+
self.parent:SaveSettings();
203200
end
204201

205202

0 commit comments

Comments
 (0)