decord/source/modules/guild_rooms/GuildRoomConstants.tsx

90 lines
5.8 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16124
// Function ID: 124949
2026-07-24 07:16:23 +00:00
// Name: getName
2026-07-27 11:26:19 +00:00
// Dependencies: [16125, 16126, 1212, 2133, 16127, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSeatName
2026-07-27 11:26:19 +00:00
// Module 16124 (getName)
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-24 07:16:23 +00:00
obj = {
background: require("metadata"),
aspectRatio: 1.375514403292181,
getName() {
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
return intl.string(importDefault(2133)["4KcB5R"]);
2026-07-24 07:16:23 +00:00
}
};
2026-07-23 10:11:24 +00:00
obj = { name: "PC_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][0] };
2026-07-20 16:05:17 +00:00
const items = [obj, , , , , , , , , , , , , , , , , , , , ];
2026-07-23 10:11:24 +00:00
const obj1 = { name: "PC_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][1] };
2026-07-20 16:05:17 +00:00
items[1] = obj1;
2026-07-23 10:11:24 +00:00
const obj2 = { name: "PC_SEAT_3", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][2] };
2026-07-20 16:05:17 +00:00
items[2] = obj2;
2026-07-23 10:11:24 +00:00
const obj3 = { name: "DUO_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][3] };
2026-07-20 16:05:17 +00:00
items[3] = obj3;
2026-07-23 10:11:24 +00:00
const obj4 = { name: "DUO_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][4] };
2026-07-20 16:05:17 +00:00
items[4] = obj4;
2026-07-23 10:11:24 +00:00
const obj5 = { name: "DUO_SEAT_STANDING_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][5] };
2026-07-20 16:05:17 +00:00
items[5] = obj5;
2026-07-23 10:11:24 +00:00
const obj6 = { name: "MAIN_COUCH_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][6] };
2026-07-20 16:05:17 +00:00
items[6] = obj6;
2026-07-23 10:11:24 +00:00
const obj7 = { name: "MAIN_COUCH_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][7] };
2026-07-20 16:05:17 +00:00
items[7] = obj7;
2026-07-23 10:11:24 +00:00
const obj8 = { name: "MAIN_COUCH_SEAT_3", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][8] };
2026-07-20 16:05:17 +00:00
items[8] = obj8;
2026-07-23 10:11:24 +00:00
const obj9 = { name: "MAIN_COUCH_SEAT_4", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][9] };
2026-07-20 16:05:17 +00:00
items[9] = obj9;
2026-07-23 10:11:24 +00:00
const obj10 = { name: "MAIN_COUCH_SEAT_5", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][10] };
2026-07-20 16:05:17 +00:00
items[10] = obj10;
2026-07-23 10:11:24 +00:00
const obj11 = { name: "SIDE_GROUP_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][11] };
2026-07-20 16:05:17 +00:00
items[11] = obj11;
2026-07-23 10:11:24 +00:00
const obj12 = { name: "SIDE_GROUP_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][12] };
2026-07-20 16:05:17 +00:00
items[12] = obj12;
2026-07-23 10:11:24 +00:00
const obj13 = { name: "SIDE_GROUP_SEAT_3", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][13] };
2026-07-20 16:05:17 +00:00
items[13] = obj13;
2026-07-23 10:11:24 +00:00
const obj14 = { name: "SIDE_GROUP_SEAT_STANDING_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][14] };
2026-07-20 16:05:17 +00:00
items[14] = obj14;
2026-07-23 10:11:24 +00:00
const obj15 = { name: "BACKROOM_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][15], dim: true };
2026-07-20 16:05:17 +00:00
items[15] = obj15;
2026-07-23 10:11:24 +00:00
const obj16 = { name: "BACKROOM_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][16], dim: true };
2026-07-20 16:05:17 +00:00
items[16] = obj16;
2026-07-23 10:11:24 +00:00
const obj17 = { name: "BACKROOM_SEAT_3", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][17], dim: true };
2026-07-20 16:05:17 +00:00
items[17] = obj17;
2026-07-23 10:11:24 +00:00
const obj18 = { name: "RAFTERS_SEAT_1", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][18] };
2026-07-20 16:05:17 +00:00
items[18] = obj18;
2026-07-23 10:11:24 +00:00
const obj19 = { name: "RAFTERS_SEAT_2", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][19] };
2026-07-20 16:05:17 +00:00
items[19] = obj19;
2026-07-23 10:11:24 +00:00
const obj20 = { name: "RAFTERS_SEAT_3", position: require("GUILD_ROOM_BACKGROUND_POSITIONS").GUILD_ROOM_BACKGROUND_POSITIONS[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT][20] };
2026-07-20 16:05:17 +00:00
items[20] = obj20;
obj.seats = items;
2026-07-23 10:11:24 +00:00
const items1 = [{ x: 45.57, y: 50.62 }];
2026-07-20 16:05:17 +00:00
obj.plants = items1;
2026-07-23 10:11:24 +00:00
obj[require("GuildRoomBackgrounds").GuildRoomBackgrounds.DEFAULT] = obj;
2026-07-24 07:16:23 +00:00
const result = require("getSystemLocale").fileFinishedImporting("modules/guild_rooms/GuildRoomConstants.tsx");
2026-07-20 16:05:17 +00:00
export const GUILD_ROOM_SPATIAL_AUDIO_MODE = "guild-room";
2026-07-23 10:11:24 +00:00
export const DEFAULT_BACKGROUND_POSITION = { imageOffsetX: 0, imageOffsetY: 0, imageWidth: 0, imageHeight: 0 };
2026-07-20 16:05:17 +00:00
export const getSeatName = function getSeatName(arg0, arg1) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-07-24 07:16:23 +00:00
let closure_1 = arg1;
2026-07-20 16:05:17 +00:00
let name;
2026-07-27 11:26:19 +00:00
const seats = obj[_require(undefined, 16125).GuildRoomBackgrounds.DEFAULT].seats;
2026-07-20 16:05:17 +00:00
const found = seats.find((position) => {
2026-07-23 10:11:24 +00:00
let tmp = position.position.x === closure_0;
2026-07-20 16:05:17 +00:00
if (tmp) {
2026-07-23 10:11:24 +00:00
tmp = position.position.y === closure_1;
2026-07-20 16:05:17 +00:00
}
return tmp;
});
if (null != found) {
name = found.name;
}
let str = "";
if (null != name) {
str = name;
}
return str;
};
export const GUILD_ROOM_BACKGROUND_CONFIG = obj;