-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invert default visibility #347
Changes from 6 commits
90e4f9c
7800c5b
f72024f
352ce71
86b8d20
4237131
5322ee7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Hide Category | ||
type: Boolean | ||
applies_to: [Category] | ||
xml_fields: [DefaultToggle] | ||
protobuf_field: hide_category | ||
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 | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_hide_category/input/pack/markers.bin.textproto._old 2024-09-05 01:23:50.377220259 +0000
+++ xml_converter/integration_tests/test_cases/proto_hide_category/input/pack/markers.bin.textproto._new 2024-09-05 01:23:50.385220281 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_hide_category/input/pack/markers.bin.textproto._old 2024-09-08 00:48:04.767466414 +0000
+++ xml_converter/integration_tests/test_cases/proto_hide_category/input/pack/markers.bin.textproto._new 2024-09-08 00:48:04.775466387 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._old 2024-09-05 01:20:42.773849700 +0000
+++ xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._new 2024-09-05 01:20:42.781849713 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._old 2024-09-05 01:23:50.389220292 +0000
+++ xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._new 2024-09-05 01:23:50.397220314 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._old 2024-09-08 00:48:04.795466321 +0000
+++ xml_converter/integration_tests/test_cases/proto_hide_category/output_proto/markers.bin.textproto._new 2024-09-08 00:48:04.803466295 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
|
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> |
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 |
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> |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/xml_default_toggle/output_proto/markers.bin.textproto._old 2024-09-05 01:23:50.405220336 +0000
+++ xml_converter/integration_tests/test_cases/xml_default_toggle/output_proto/markers.bin.textproto._new 2024-09-05 01:23:50.413220357 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Full Diff--- xml_converter/integration_tests/test_cases/xml_default_toggle/output_proto/markers.bin.textproto._old 2024-09-08 00:48:04.807466282 +0000
+++ xml_converter/integration_tests/test_cases/xml_default_toggle/output_proto/markers.bin.textproto._new 2024-09-08 00:48:04.815466255 +0000
@@ -0,0 +1,50 @@
+category {
+ name: "My Category"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\350\314\006\302\223^\226"
+}
+category {
+ name: "My Category 2"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3404\0141b"
+}
+category {
+ name: "My Category 3"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ default_visibility: true
+ id: "(\355i\3405\0141b"
+}
+category {
+ name: "My Category 4"
+ icon {
+ map_id: 50
+ position {
+ x: 169.81
+ y: 210.65
+ z: 215.83
+ }
+ }
+ id: "(\355i\3406\0141b"
+}
|
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> |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ message Category { | |
repeated Icon icon = 3; | ||
repeated Trail trail = 4; | ||
bool is_separator = 5; | ||
bool default_visibility = 6; | ||
bool hide_category = 6; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What were other names that were considered here and why did you decide on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other top names I considered were There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My gut tells me that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree How about |
||
string tip_description = 7; | ||
bytes id = 8; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff