Skip to content

Commit

Permalink
v3.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bellyillish committed Apr 12, 2024
1 parent 2b692d8 commit 7d7d7c1
Show file tree
Hide file tree
Showing 52 changed files with 1,606 additions and 519 deletions.
93 changes: 0 additions & 93 deletions .github/workflows/package.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@sandbox/
@releases/
.vscode/
.vscode/
105 changes: 105 additions & 0 deletions 00 Dart Core (Required)/gamedata/configs/text/eng/dart.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<string_table>
<string id="ui_mcm_dart_title">
<text>DART</text>
</string>

<string id="ui_mcm_dart_core_title">
<text>Main Settings</text>
</string>

<string id="ui_mcm_menu_dart">
<text>DART</text>
</string>

<string id="ui_mcm_menu_dart_core">
<text>Main</text>
</string>

<string id="ui_mcm_dart_scale">
<text>Scale</text>
</string>

<string id="ui_mcm_dart_scale_desc">
<text>Adjust the size of this element. Values greater than 1 will make this element larger. Values less than 1 will make it smaller.</text>
</string>

<string id="ui_mcm_dart_scale_note">
<text>NOTE: Text size is fixed and cannot be scaled.</text>
</string>

<string id="ui_mcm_dart_offsetX">
<text>X Offset</text>
</string>

<string id="ui_mcm_dart_offsetX_desc">
<text>Adjust the horizontal position of this element. Positive values move it to the right. Negative values move it to the left.</text>
</string>

<string id="ui_mcm_dart_offsetY">
<text>Y Offset</text>
</string>

<string id="ui_mcm_dart_offsetY_desc">
<text>Adjust the vertical position of this element. Positive values move it down. Negative values move it up.</text>
</string>

<string id="ui_mcm_dart_alignX">
<text>Horizontal Alignment</text>
</string>

<string id="ui_mcm_dart_alignX_desc">
<text>Align this element horizontally to the specified area of the screen.</text>
</string>

<string id="ui_mcm_dart_alignY">
<text>Vertical Alignment</text>
</string>

<string id="ui_mcm_dart_alignY_desc">
<text>Align this element vertically to the specified area of the screen.</text>
</string>

<string id="ui_mcm_dart_core_safezone">
<text>Safe Zone</text>
</string>

<string id="ui_mcm_dart_core_safezone_desc">
<text>Move all elements closer to the center of the screen by the specified number of pixels.</text>
</string>

<string id="ui_mcm_dart_core_debugOptions_title">
<text>Debug Settings</text>
</string>

<string id="ui_mcm_dart_core_refreshKey">
<text>Manual HUD Refresh Key</text>
</string>

<string id="ui_mcm_dart_core_refreshKey_desc">
<text>Assign a keybind to manually refresh all HUD elements affected by DART.</text>
</string>

<string id="ui_mcm_lst_dart_default">
<text>(Use Default)</text>
</string>

<string id="ui_mcm_lst_dart_left">
<text>Left</text>
</string>

<string id="ui_mcm_lst_dart_center">
<text>Center</text>
</string>

<string id="ui_mcm_lst_dart_right">
<text>Right</text>
</string>

<string id="ui_mcm_lst_dart_top">
<text>Top</text>
</string>

<string id="ui_mcm_lst_dart_bottom">
<text>Bottom</text>
</string>
</string_table>
59 changes: 0 additions & 59 deletions 00 Dart Core (Required)/gamedata/scripts/dart_config.script

This file was deleted.

92 changes: 5 additions & 87 deletions 00 Dart Core (Required)/gamedata/scripts/dart_core.script
Original file line number Diff line number Diff line change
@@ -1,91 +1,11 @@
-- default config
config = {
logLimit = 10,
safezone = 0,
local MCM = dart_mcm

ammoWheel = {
anchor = {"CENTER", "CENTER"},
offset = {0, 0},
scale = 1,
roundWheel = true,
},

bhs = {
anchor = {"LEFT", "BOTTOM"},
offset = {8, 0},
safezone = true,
scale = 1,
},
-- default values when mcm is active
config = {logLimit = 10, safezone = 0}

companionList = {
anchor = {"RIGHT", "BOTTOM"},
offset = {-12, 96},
safezone = true,
scale = 1,
},

companionWheel = {
anchor = {"CENTER", "CENTER"},
offset = {0, 0},
scale = 1,
},

inventory = {
scale = 1,
padScale = 1,
},

markers = {},

messages = {
anchor = {"LEFT", "BOTTOM"},
offset = {0, -12},
safezone = true,
scale = 1,
},

minimap = {
anchor = {"RIGHT", "BOTTOM"},
offset = {0, 0},
safezone = true,
scale = 1,
align = nil,
alpha = nil,
clockOffset = {0, 0},
},

patches = {
anchor = {"LEFT", "BOTTOM"},
offset = {12, 0},
safezone = true,
scale = 1.25,
},

scopes = {},

statusIcons = {
anchor = {"LEFT", "BOTTOM"},
offset = {-4, -8},
safezone = true,
scale = 1,
spacing = 2,
},
}

-- holds state to share data across files
state = {
ammoWheel = {},
bhs = {},
companionList = {},
companionWheel = {},
inventory = {},
markers = {},
messages = {},
minimap = {},
patches = {},
scopes = {},
statusIcons = {},
}
-- when modules need to share values at runtime
state = {}

-- consts
baseWidth = 1024
Expand Down Expand Up @@ -125,14 +45,12 @@ xmlAspectRatios = {
["ui\\ui_hud.xml"] = ratio4x3,
}


-- replace files on left with ones on right
xmlFileReplacements = {
["ui\\zone_map_21.xml"] = "ui\\zone_map_16.xml",
["ui\\scopes_21.xml"] = "ui\\scopes_16.xml",
}


-- template for missing left/right scope fillers
scopeFillerTemplate = [[
<auto_static x="0" y="0" width="0" height="768" stretch="1">
Expand Down
Loading

0 comments on commit 7d7d7c1

Please sign in to comment.