dirk-cfx-react 1.1.68 → 1.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +7 -5
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +7 -5
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1741,7 +1741,7 @@ var GTA_CONTROLS = [
|
|
|
1741
1741
|
// ── Misc ───────────────────────────────────────────────────────────────────
|
|
1742
1742
|
{ id: 51, symbol: "INPUT_CONTEXT", label: "Context (E)", defaultKey: "E", group: "Misc" },
|
|
1743
1743
|
{ id: 52, symbol: "INPUT_CONTEXT_SECONDARY", label: "Context Secondary", defaultKey: "Q", group: "Misc" },
|
|
1744
|
-
{ id:
|
|
1744
|
+
{ id: 19, symbol: "INPUT_CHARACTER_WHEEL", label: "Character Wheel", defaultKey: "Left Alt", group: "Misc" },
|
|
1745
1745
|
{ id: 105, symbol: "INPUT_HUD_SPECIAL", label: "Special Ability", defaultKey: "Caps Lock", group: "Misc" },
|
|
1746
1746
|
{ id: 121, symbol: "INPUT_MULTIPLAYER_INFO", label: "Player List", defaultKey: "Z", group: "Misc" },
|
|
1747
1747
|
{ id: 170, symbol: "INPUT_SAVE_REPLAY_CLIP", label: "Save Replay Clip", defaultKey: "F1", group: "Misc" },
|
|
@@ -4106,7 +4106,7 @@ function ConfigPanel(props) {
|
|
|
4106
4106
|
}
|
|
4107
4107
|
) });
|
|
4108
4108
|
}
|
|
4109
|
-
function LazyImage({ src,
|
|
4109
|
+
function LazyImage({ src, style }) {
|
|
4110
4110
|
const [visible, setVisible] = react.useState(false);
|
|
4111
4111
|
const ref = react.useRef(null);
|
|
4112
4112
|
react.useEffect(() => {
|
|
@@ -4119,7 +4119,7 @@ function LazyImage({ src, alt, style }) {
|
|
|
4119
4119
|
if (ref.current) observer.observe(ref.current);
|
|
4120
4120
|
return () => observer.disconnect();
|
|
4121
4121
|
}, []);
|
|
4122
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsxRuntime.jsx(core.Image, { src,
|
|
4122
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, style: { width: "4vh", height: "4vh" }, children: visible && /* @__PURE__ */ jsxRuntime.jsx(core.Image, { src, fit: "contain", style }) });
|
|
4123
4123
|
}
|
|
4124
4124
|
function SelectItem(props) {
|
|
4125
4125
|
const invItems = useItems();
|
|
@@ -4147,12 +4147,12 @@ function SelectItem(props) {
|
|
|
4147
4147
|
searchable: true,
|
|
4148
4148
|
comboboxProps: { withinPortal: true, zIndex: 2e3 },
|
|
4149
4149
|
leftSectionWidth: "4vh",
|
|
4150
|
+
leftSectionPointerEvents: "none",
|
|
4150
4151
|
leftSection: props.value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4151
4152
|
core.Image,
|
|
4152
4153
|
{
|
|
4153
4154
|
fallbackSrc: "/placeholder.png",
|
|
4154
4155
|
src: invItems[props.value]?.image || "",
|
|
4155
|
-
alt: props.value,
|
|
4156
4156
|
fit: "contain",
|
|
4157
4157
|
maw: "4vh",
|
|
4158
4158
|
style: { aspectRatio: "1 / 1" }
|
|
@@ -4164,7 +4164,6 @@ function SelectItem(props) {
|
|
|
4164
4164
|
LazyImage,
|
|
4165
4165
|
{
|
|
4166
4166
|
src: invItems[item.option.value]?.image || "",
|
|
4167
|
-
alt: item.option.label,
|
|
4168
4167
|
style: { aspectRatio: "1 / 1" }
|
|
4169
4168
|
}
|
|
4170
4169
|
),
|
|
@@ -4553,7 +4552,10 @@ var FiveMKeyBindInput = Object.assign(Root, {
|
|
|
4553
4552
|
});
|
|
4554
4553
|
function buildGroupedData(extraIds = []) {
|
|
4555
4554
|
const groups = /* @__PURE__ */ new Map();
|
|
4555
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4556
4556
|
for (const c of GTA_CONTROLS) {
|
|
4557
|
+
if (seen.has(c.id)) continue;
|
|
4558
|
+
seen.add(c.id);
|
|
4557
4559
|
if (!groups.has(c.group)) groups.set(c.group, []);
|
|
4558
4560
|
groups.get(c.group).push(c);
|
|
4559
4561
|
}
|