Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
Fixed battle summary for knights so NVDA doesn't treat their names as a second column.
Taught NVDA how to say options.
Removed forced event pause for sighted mode and multiplayer.
  • Loading branch information
Agamidae committed Dec 27, 2023
1 parent 7bce506 commit 5465982
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 44 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release with commit

on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: ChanTsune/release-with-commit@v3.0.0
with:
regexp: "((\\d+([.]\\d+)*)\\d*)((\\s|\\S)*)"
regexp_options: "us"
release_name: "OCR-Support $1"
tag_name: "v$1"
body: "$4"
draft: false
prerelease: false
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
8 changes: 4 additions & 4 deletions OCR-Support/gui/_OCR_WIDGET.gui
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ window = {
state = {
name = stay_paused
# trigger_when = "[And(And(Not(IsGamePaused), Is('pause_event')), Not(Or(GameHasMultiplePlayers, Is('ocr')))]"
trigger_when = "[And(And(Not(IsGamePaused), Is('pause_event')), Not(Show('pause_event')))]"
trigger_when = "[And(And(And(And(Not(IsGamePaused), Is('pause_event')), Not(Show('pause_event'))), Isnt('ocr')), Not(GameIsMultiplayer))]"
on_finish = "[OnPause]"
on_finish = "[Clear('pause_event')]"
}
Expand All @@ -46,9 +46,9 @@ window = {

# text_single = {
# background = { using = Background_Area_Border_Solid }
# position = { 0 120 }
# visible = "[Is('toasted')]"
# raw_text = "TOAST"
# position = { 50 120 }
# visible = "[GameIsMultiplayer]"
# raw_text = "Multiplayer!"
# }


Expand Down
1 change: 1 addition & 0 deletions OCR-Support/gui/event_windows/character_event.gui
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ types OCR {
text_single = {
layoutpolicy_horizontal = expanding
raw_text = "[GetDataModelSize(EventWindowData.GetOptions)] options:"
margin_bottom = 5
}

item = {
Expand Down
18 changes: 3 additions & 15 deletions OCR-Support/gui/hud.gui
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ widget = {

text_single = {
resizeparent = yes
margin_left = -60
margin_left = -56
name = "gained_value"
raw_text = "[ValueBreakdown.GetValue]."
}
Expand Down Expand Up @@ -1480,7 +1480,7 @@ widget = {
}

hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_horizontal = expanding
spacing = 3

datacontext = "[GetPlayer]"
Expand Down Expand Up @@ -5631,20 +5631,8 @@ types HUD
type container_resource_balance = container {
text_single = {
name = "balance_pos"
visible = "[GreaterThanOrEqualTo_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]"
text = "[PlayerValueItem.GetBalance|1=]"
text = "[PlayerValueItem.GetBalance|1=]."
max_width = 110

default_format = "#low"
}

text_single = {
name = "balance_neg"
visible = "[LessThan_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]"
text = "[PlayerValueItem.GetBalance|1=]"
max_width = 110

default_format = "#N"
}
}

Expand Down
3 changes: 2 additions & 1 deletion OCR-Support/gui/shared/00_lists.gui
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,8 @@ types Lists
block "filters_visible" { }

blockoverride "text" {
raw_text = "Filters[AddTextIf(CharacterSelectionList.FiltersShown, ', opened')][AddTextIf(Not(CharacterSelectionList.IsAllDefault), ', applied')], hotkey F."
raw_text = "Filters[AddTextIf(CharacterSelectionList.FiltersShown, ', opened')][AddTextIf(Not(CharacterSelectionList.IsAllDefault), ', applied')] F:"
# using : becuse it gives a better pause than a dot. Dunno why
}

}
Expand Down
20 changes: 10 additions & 10 deletions OCR-Support/gui/window_battle_summary.gui
Original file line number Diff line number Diff line change
Expand Up @@ -362,22 +362,20 @@ window = {

hbox = {
layoutpolicy_horizontal = expanding
spacing = 3

button_text = {
blockoverride "text" {
text = "BATTLE_SUMMARY_SOLDIERS"
align = left
}
blockoverride "extra" {
comma = {}
text_single = {
raw_text = ", tab 1"
raw_text = "tab 1,"
}
text_single = {
raw_text = ", Selected"
raw_text = "Selected."
visible = "[BattleSummaryWindow.IsSoldiersShown]"
}
dot = { }
}
onclick = "[BattleSummaryWindow.OnShowSoldiers]"
onclick = "[BattleSummaryWindow.RestoreSort]"
Expand All @@ -388,17 +386,16 @@ window = {
button_text = {
blockoverride "text" {
text = "BATTLE_SUMMARY_KNIGHTS"
align = left
}
blockoverride "extra" {
comma = {}
text_single = {
raw_text = ", tab 2"
raw_text = "tab 2,"
}
text_single = {
raw_text = ", Selected"
raw_text = "Selected."
visible = "[BattleSummaryWindow.IsKnightsShown]"
}
dot = { }
}
onclick = "[BattleSummaryWindow.OnShowKnights]"
onclick = "[BattleSummaryWindow.RestoreSort]"
Expand Down Expand Up @@ -858,14 +855,17 @@ types BattleSummary
}

char_name = {
blockoverride "margins" {
spacing = 3
}
# blockoverride "extra" {
# text_single = {
# raw_text = "[Character.GetAge]."
# }
# }
}

expand = { }
expand = { }
}

hbox = {
Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/english/ocr_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0.1"
mod_changes: "Fixed sorting for special buildings.\nAdded advantage at the top of the battle window.\nAdded hotkey 2 to assign or change commander.\nFixed a typo in battle results and rounding of control in the county list."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/french/ocr_l_french.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/german/ocr_l_german.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/korean/ocr_l_korean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/russian/ocr_l_russian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/simp_chinese/ocr_l_simp_chinese.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down
4 changes: 2 additions & 2 deletions OCR-Support/localization/spanish/ocr_l_spanish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

test1: "speed_1"

mod_version: "Mod version 1.0"
mod_changes: "Fixed events increasing speed.\nAdded a togle to auto-unpause events.\nFixed sorting for character counties not refreshing the list.\nTweaked updates to not be read first in some windows."
mod_version: "Mod version 1.0.2"
mod_changes: "Fixed battle summary for knights so NVDA doesn't treat their names as a second column.\nTaught NVDA how to say options.\nRemoved forced event pause for sighted mode and multiplayer."
prev_changes: ""


Expand Down

0 comments on commit 5465982

Please sign in to comment.