This file contains hidden or 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
| // design-stats-panel - extends arcon-ui's design-mode unit info panel | |
| // with per-system energy breakdown, weapon-burst totals, cloak timing, and | |
| // a 5-segment power bar in place of the stock 3-segment one. | |
| // | |
| // instead of overlaying a full panel, this mod plugs into arcon-ui's | |
| // named unit-info slots: | |
| // stats_extra -> total weapon burst cell | |
| // power_bar -> 5-segment (replaces default) | |
| // energy -> detailed per-system rows (replaces default 4 cells) | |
| // |
This file contains hidden or 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
| // arcon-sandbox - SES-based isolation for arcon mods. opt-in extension parallel | |
| // to arcon-ui. loading this file: | |
| // 1. fetches the SES shim from a CDN (cached after first load) | |
| // 2. snapshots non-standard prototype extensions istrolid relies on | |
| // (e.g. Array.prototype.last, .first, etc.) BEFORE lockdown | |
| // 3. calls repairIntrinsics (strips them as "unpermitted") | |
| // 4. restores them so the game keeps working | |
| // 5. calls hardenIntrinsics (freezes everything, including the restored | |
| // extensions, so a sandboxed mod can't tamper with Array.prototype.last) | |
| // 6. installs arcon.sandbox.load(name, source) which evaluates mod source |
This file contains hidden or 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
| // arcon-ui - ports of the game's render functions, with extension registries. | |
| // loaded on top of arcon.js. once installed, mods extend the game UI through | |
| // real registries instead of monkey-patching closure-private helpers. | |
| // | |
| // surfaces ported in this module: | |
| // - player_chip (was: battleroom.js ui.playerChip) | |
| // - chat (was: chat.js chat.draw + chat.room) | |
| // - top_bar (was: buildbar.js buildBar.draw top strip) | |
| // - build_bar (was: buildbar.js buildBar.draw bottom strip) | |
| // - action_bar (was: buildbar.js #action-bar) |
This file contains hidden or 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
| // arcon - modding api for istrolid client mods | |
| // sub-namespaces: hud, ui, chat, net, storage, util | |
| // each is independent and lazily installs its own game-side hooks | |
| // | |
| // versioning: semver-style { major, minor, patch } | |
| // - major bump: breaking changes (mods built against older major must update) | |
| // - minor bump: additive features (older mods keep working, newer mods need >= this minor) | |
| // - patch bump: bugfixes only, fully compatible both directions | |
| // mods declare their requirement via arcon.require({ major, minor }). | |
| // if arcon isn't compatible, require returns false and logs an error; |
This file contains hidden or 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
| (function () { | |
| if (!window.arcon) { | |
| console.error("flip_buttons: arcon not found, load arcon.js first"); | |
| return; | |
| } | |
| if (!arcon.require({ major: 1, minor: 2 })) return; | |
| if (!arcon.ui_module || !arcon.ui_module.design_toolbar) { | |
| console.error("flip_buttons: arcon-ui not loaded"); | |
| return; | |
| } |
This file contains hidden or 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
| // arcon-manifest: | |
| // name: rhythm-aoe-indicators | |
| // permissions: [game, draw, util, hud, ui.action_bar] | |
| (function () { | |
| if (!window.arcon) { | |
| console.error("aoe_indicators: arcon not found, load arcon.js first"); | |
| return; | |
| } | |
| if (!arcon.require({ major: 1, minor: 4 })) return; |
This file contains hidden or 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
| (function () { | |
| eval(onecup['import']()); | |
| // Minimap configuration | |
| var minimapConfig = { | |
| mode: "radius", // "radius", "cost", or "dps" | |
| mapScale: 1.5 | |
| }; | |
| function colorArrayToRGB(array) { |
This file contains hidden or 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
| (function () { | |
| eval(onecup["import"]()); | |
| environment = { | |
| hud_size: 1.0, | |
| hud_width: 320, | |
| hud_opacity: 0.4, | |
| hud_padding: 12, | |
| row_padding_vertical: 4, | |
| row_padding_horizontal: 8, |
This file contains hidden or 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
| (function () { | |
| eval(onecup["import"]()); | |
| // Configuration | |
| tradeTracker = { | |
| enabled: true, | |
| // Detection settings | |
| updateInterval: 8, | |
| minTradeValue: 2, |
This file contains hidden or 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
| (function () { | |
| eval(onecup["import"]()); | |
| if (!window.HUDManager) { | |
| window.HUDManager = { | |
| mods: [], | |
| bodyHooked: false, | |
| register: function(name, func, priority) { | |
| this.mods.push({ |
NewerOlder