Merge branch 'new-rem-client' of https://git.rem-freelancer.moe/REM-Freelancer/REM-Mod into new-rem-client

This commit is contained in:
D4rkl1ght3r
2026-11-07 00:55:46 +01:00
5 changed files with 77 additions and 1 deletions
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
<rml>
<head>
<title>FPS</title>
<link type="text/rcss" href="rem.rcss"/>
<style>
/* the FPS display (rem_ui_fps.cpp): a small plate under the REM bar; no click target but its grip in the editor */
body.fps { position: absolute; left: 16dp; top: 64dp; width: 160dp; height: 30dp; background-color: transparent; pointer-events: none; }
.plate { display: flex; flex-direction: row; align-items: center; height: 30dp; padding: 0 10dp; decorator: ninepatch(fw, fw-i); font-family: "IBM Plex Mono"; font-size: 14dp; color: #dbe6f0; }
.plate .v { color: #f2b13c; }
.plate .k { font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 11dp; letter-spacing: 1.5dp; color: #8197ad; margin: 0 10dp 0 5dp; }
.edit-grip { display: none; position: absolute; left: 0; top: -26dp; padding: 2dp 8dp; background-color: #f2b13c; color: #05080d; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 13dp; border-radius: 3dp; white-space: nowrap; drag: drag; cursor: move; pointer-events: auto; z-index: 10; }
.hud-editing .edit-grip { display: block; }
</style>
</head>
<body class="fps movable" data-model="fps">
<div class="win-head edit-grip">FPS &#10021;</div>
<div class="plate"><span class="v">{{ fps }}</span><span class="k">FPS</span><span>{{ ms }} ms</span></div>
</body>
</rml>
+2 -1
View File
@@ -268,8 +268,9 @@
<!-- the HUD editor's bar -->
<div class="edbar" data-if="editing">
<div class="et">CUSTOMIZE HUD</div>
<div class="eh">Drag a part or its label to move it &#183; mouse wheel over it to size it &#183; Hide / Show on its label &#183; the REM bars, the radar and the chat by their tags. Parts snap to their home place.</div>
<div class="eh">Drag a part or its label to move it &#183; mouse wheel over it to size it &#183; Hide / Show on its label &#183; the REM bars, the radar and the chat by their tags &#183; Widgets: switch every part on or off. Parts snap to their home place.</div>
<div class="eb">
<div class="btn" data-action="ed_widgets">Widgets</div>
<div class="btn" data-action="ed_reset">Reset all</div>
<div class="btn" data-action="ed_cancel">Cancel</div>
<div class="btn primary" data-action="ed_save">Save</div>
+56
View File
@@ -0,0 +1,56 @@
<rml>
<head>
<title>Widgets</title>
<link type="text/rcss" href="rem.rcss"/>
<style>
/* the widget store (rem_ui_widgetstore.cpp): a panel at the right edge while the HUD is edited */
body.window.store { left: auto; right: 16dp; top: 90dp; width: 400dp; height: 72%; max-width: none; }
.list { flex: 1 1 0; min-height: 0; overflow-y: auto; }
.sec { margin: 14dp 0 6dp 0; padding-bottom: 3dp; border-bottom: 1dp #2b6f9e; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 12dp; letter-spacing: 2dp; color: #5cc8f0; }
.sec.top { margin-top: 0; }
.w { display: flex; flex-direction: row; align-items: center; padding: 8dp 10dp; margin-bottom: 6dp; border-left: 3dp #3d6d96; background-color: #5cc8f010; }
.w.off { border-left-color: #24405c; background-color: #00000000; }
.w.off .n, .w.off .d { color: #5c7a94; }
.w .txt { flex: 1; min-width: 0; margin-right: 10dp; }
.w .n { font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 16dp; }
.w .d { font-size: 12dp; color: #8197ad; margin-top: 2dp; }
.w .note { font-size: 12dp; color: #f2b13c; margin-top: 4dp; }
.new { font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 10dp; letter-spacing: 1dp; color: #5fd08a; background-color: #5fd08a33; padding: 1dp 5dp; margin-left: 6dp; }
.switch { width: 52dp; padding: 3dp 0; text-align: center; border: 2dp #3d6d96; border-radius: 4dp; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 13dp; letter-spacing: 1dp; color: #8197ad; }
.switch.on { border-color: #f2b13c; color: #f2b13c; background-color: #f2b13c1f; }
.switch:hover { border-color: #5cc8f0; }
.foot { display: flex; flex-direction: row; justify-content: flex-end; margin-top: 10dp; }
.foot .btn { margin: 0 0 0 8dp; }
</style>
</head>
<body class="window store" data-model="widgetstore">
<div class="win-head">
<span class="title">WIDGETS</span><span class="sl">\\\</span>
<span class="spacer"></span>
<span class="chip"><span class="v">{{ on_count }} / {{ count }}</span> on</span>
<span class="close" data-action="close">&#215;</span>
</div>
<div class="win-main">
<div class="content">
<div class="list">
<div data-for="r : rows">
<div class="sec" data-if="r.head" data-class-top="r.top">{{ r.group }}</div>
<div class="w" data-class-off="!r.on">
<div class="txt">
<div class="n">{{ r.name }}<span class="new" data-if="r.isnew">NEW</span></div>
<div class="d">{{ r.description }}</div>
<div class="note" data-if="!r.on &amp;&amp; r.note != ''">{{ r.note }}</div>
</div>
<div class="switch" data-class-on="r.on" data-action="toggle" data-attr-data-arg="r.id">{{ r.on ? 'ON' : 'OFF' }}</div>
</div>
</div>
</div>
<div class="foot">
<div class="btn" data-action="ed_reset">Reset all</div>
<div class="btn" data-action="ed_cancel">Cancel</div>
<div class="btn primary" data-action="ed_save">Save</div>
</div>
</div>
</div>
</body>
</rml>
BIN
View File
Binary file not shown.