Skip to content

Commit

Permalink
Opfor panel fixups (#3341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Sep 13, 2024
1 parent 5f90a08 commit 1c3a24d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/__DEFINES/~monkestation/optfor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#define OPFOR_REQUEST_UPDATE_COOLDOWN (5 MINUTES)
#define OPFOR_PING_COOLDOWN (1 MINUTES)

#define OPFOR_TEXT_LIMIT_TITLE 40
#define OPFOR_TEXT_LIMIT_TITLE 64
#define OPFOR_TEXT_LIMIT_BACKSTORY 2000
#define OPFOR_TEXT_LIMIT_DESCRIPTION 1000
#define OPFOR_TEXT_LIMIT_JUSTIFICATION 1000
#define OPFOR_TEXT_LIMIT_MESSAGE 300
#define OPFOR_TEXT_LIMIT_MESSAGE MAX_MESSAGE_LEN

#define OPFOR_EQUIPMENT_LIMIT 10
#define OPFOR_EQUIPMENT_COUNT_LIMIT 5
Expand Down
6 changes: 6 additions & 0 deletions tgui/packages/tgui/interfaces/OpposingForcePanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export const OpposingForceTab = (props) => {
height="100px"
value={backstory}
placeholder="Provide a description of why you want to do bad things. Include specifics such as what lead upto the events that made you want to do bad things, think of it as though you were your character, react appropriately. If you don't have any ideas, check the #player-shared-opfors channel for some. (2000 char limit)"
maxLength={2000}
onChange={(_e, value) =>
act('set_backstory', {
backstory: value,
Expand Down Expand Up @@ -351,6 +352,7 @@ export const OpposingForceObjectives = (props) => {
width="100%"
placeholder="blank objective"
value={selectedObjective.title}
maxLength={64}
onChange={(e, value) =>
act('set_objective_title', {
objective_ref: selectedObjective.ref,
Expand Down Expand Up @@ -466,6 +468,7 @@ export const OpposingForceObjectives = (props) => {
fluid
disabled={!can_edit}
height="85px"
maxLength={1000}
value={selectedObjective.description}
onChange={(e, value) =>
act('set_objective_description', {
Expand All @@ -492,6 +495,7 @@ export const OpposingForceObjectives = (props) => {
disabled={!can_edit}
height="85px"
value={selectedObjective.justification}
maxLength={1000}
onChange={(e, value) =>
act('set_objective_justification', {
objective_ref: selectedObjective.ref,
Expand Down Expand Up @@ -581,6 +585,7 @@ export const EquipmentTab = (props) => {
width="100%"
placeholder="Reason for item"
value={equipment.reason}
maxLength={1000}
onChange={(e, value) =>
act('set_equipment_reason', {
selected_equipment_ref: equipment.ref,
Expand Down Expand Up @@ -656,6 +661,7 @@ export const AdminChatTab = (props) => {
selfClear
placeholder="Send a message or command using '/'"
mt={1}
maxLength={1024}
onEnter={(e, value) =>
act('send_message', {
message: value,
Expand Down

0 comments on commit 1c3a24d

Please sign in to comment.