-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from klingbolt/invert_default_visibility
Invert default visibility
- Loading branch information
Showing
13 changed files
with
132 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Is Hidden | ||
type: Boolean | ||
applies_to: [Category] | ||
xml_fields: [DefaultToggle] | ||
protobuf_field: is_hidden | ||
custom_functions: | ||
read.xml: | ||
function: inverted_xml_attribute_to_bool | ||
side_effects: [] | ||
write.xml: | ||
function: bool_to_inverted_xml_attribute | ||
side_effects: [] | ||
--- | ||
|
||
Notes | ||
===== | ||
If the category should be shown or hidden on or off by default. | ||
|
||
https://blishhud.com/docs/markers/attributes/defaulttoggle | ||
|
||
|
9 changes: 9 additions & 0 deletions
9
xml_converter/integration_tests/test_cases/proto_hide_category/input/pack/markers.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
xml_converter/integration_tests/test_cases/proto_hide_category/output_xml/xml_file.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" DefaultToggle="false" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 2" ID="KO1p4DQMMWI=" Name="mycategory2"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 3" DefaultToggle="false" ID="KO1p4DUMMWI=" Name="mycategory3"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 4" ID="KO1p4DYMMWI=" Name="mycategory4"> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory2" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory3" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory4" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
</POIs> | ||
</OverlayData> |
5 changes: 5 additions & 0 deletions
5
xml_converter/integration_tests/test_cases/proto_hide_category/testcase.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
input_paths: | ||
"pack": "proto" | ||
expected_stdout: | | ||
expected_stderr: | | ||
expected_returncode: 0 |
16 changes: 16 additions & 0 deletions
16
xml_converter/integration_tests/test_cases/xml_default_toggle/input/pack/xml_file.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" DefaultToggle="false" Name="mycategory"> | ||
</MarkerCategory> | ||
<MarkerCategory DisplayName="My Category 2" DefaultToggle="true" Name="mycategory2"> | ||
</MarkerCategory> | ||
<MarkerCategory DisplayName="My Category 3" DefaultToggle="0" Name="mycategory3"> | ||
</MarkerCategory> | ||
<MarkerCategory DisplayName="My Category 4" DefaultToggle="1" Name="mycategory4"> | ||
</MarkerCategory> | ||
<POIs> | ||
<POI Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="mycategory2" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="mycategory3" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI Type="mycategory4" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
</POIs> | ||
</OverlayData> |
9 changes: 9 additions & 0 deletions
9
xml_converter/integration_tests/test_cases/xml_default_toggle/output_proto/markers.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
xml_converter/integration_tests/test_cases/xml_default_toggle/output_xml/xml_file.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" DefaultToggle="false" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 2" DefaultToggle="true" ID="KO1p4DQMMWI=" Name="mycategory2"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 3" DefaultToggle="false" ID="KO1p4DUMMWI=" Name="mycategory3"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Category 4" DefaultToggle="true" ID="KO1p4DYMMWI=" Name="mycategory4"> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory2" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory3" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory4" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
</POIs> | ||
</OverlayData> |
5 changes: 5 additions & 0 deletions
5
xml_converter/integration_tests/test_cases/xml_default_toggle/testcase.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
input_paths: | ||
"pack": "xml" | ||
expected_stdout: | | ||
expected_stderr: | | ||
expected_returncode: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters