-
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 #348 from klingbolt/scale_on_map
Change Scale On Map with Zoom to Constant Size on Map
- Loading branch information
Showing
13 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
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,21 @@ | ||
--- | ||
name: Constant Size On Map | ||
type: Boolean | ||
applies_to: [Icon] | ||
xml_fields: [ScaleOnMapWithZoom] | ||
protobuf_field: constant_size_on_map | ||
custom_functions: | ||
read.xml: | ||
function: inverted_xml_attribute_to_bool | ||
side_effects: [] | ||
write.xml: | ||
function: bool_to_inverted_xml_attribute | ||
side_effects: [] | ||
--- | ||
Scale the size of the object to be the same scale as the map. | ||
|
||
Notes | ||
===== | ||
|
||
https://blishhud.com/docs/markers/attributes/scaleonmapwithzoom | ||
|
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
xml_converter/integration_tests/test_cases/proto_constant_size_on_map/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
q | ||
My Category 2B\�)Cf�RC{�WC 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WCB(��^� | ||
|
3 changes: 3 additions & 0 deletions
3
...onverter/integration_tests/test_cases/proto_constant_size_on_map/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
q | ||
My Category 2B\�)Cf�RC{�WC 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WCB(��^� | ||
|
11 changes: 11 additions & 0 deletions
11
...converter/integration_tests/test_cases/proto_constant_size_on_map/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,11 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="false" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="false" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" 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_constant_size_on_map/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 |
10 changes: 10 additions & 0 deletions
10
...converter/integration_tests/test_cases/xml_scale_on_map_with_zoom/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,10 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" Name="mycategory"> | ||
</MarkerCategory> | ||
<POIs> | ||
<POI ScaleOnMapWithZoom="true" Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI ScaleOnMapWithZoom="false" Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI ScaleOnMapWithZoom="0" Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
<POI ScaleOnMapWithZoom="1" Type="mycategory" XPos="169.81" YPos="210.65" ZPos="215.83" MapID="50" /> | ||
</POIs> | ||
</OverlayData> |
3 changes: 3 additions & 0 deletions
3
...onverter/integration_tests/test_cases/xml_scale_on_map_with_zoom/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
q | ||
My Category 2B\�)Cf�RC{�WC 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WC� 2B\�)Cf�RC{�WCB(��^� | ||
|
11 changes: 11 additions & 0 deletions
11
...converter/integration_tests/test_cases/xml_scale_on_map_with_zoom/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,11 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Category" ID="KOjMBsKTXpY=" Name="mycategory"> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="true" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="false" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="false" MapID="50" XPos="169.809998" YPos="210.649994" ZPos="215.830002"/> | ||
<POI Type="mycategory" ScaleOnMapWithZoom="true" 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_scale_on_map_with_zoom/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