This commit is contained in:
Marces Zastrow
2025-02-28 16:11:29 +01:00
parent 50c7c2c550
commit abac91ccd7
2 changed files with 19 additions and 15 deletions
+19 -15
View File
@@ -448,7 +448,11 @@ const handleUpdate = async () => {
backgroundColor: '#2e2e3f',
padding: '16px 24px'
}}>
{editType === 'item' ? 'Edit Item' : editType === 'npc' ? 'Edit NPC' : 'Edit Character'}
{editType === 'item'
? 'Gegenstand Bearbeiten'
: editType === 'npc'
? 'NSC Bearbeiten'
: 'Charakter Bearbeiten'}
</DialogTitle>
<DialogContent sx={{
p: 3,
@@ -484,7 +488,7 @@ const handleUpdate = async () => {
}
}}
>
Cancel
Abbrechen
</Button>
<Button
onClick={handleUpdate}
@@ -497,7 +501,7 @@ const handleUpdate = async () => {
}
}}
>
Save Changes
Änderungen Speichern
</Button>
</DialogActions>
</Dialog>
@@ -573,13 +577,13 @@ const handleUpdate = async () => {
{item.ItemName}
</Typography>
<Typography variant="body2" sx={{ color: '#bbb' }}>
Type: {item.Type}
Typ: {item.Type}
</Typography>
<Typography variant="body2" sx={{ color: '#bbb' }}>
Value: {item.GoldValue}
Wert: {item.GoldValue}
</Typography>
<Typography variant="body2" sx={{ color: '#bbb' }}>
Owner: {item.OwnerName || 'Unassigned'}
Besitzer: {item.OwnerName || 'Nicht zugewiesen'}
</Typography>
</CardContent>
</Card>
@@ -602,7 +606,7 @@ const handleUpdate = async () => {
// Removed minHeight calculation
}}>
<Typography variant="h4" sx={{ mb: 4, color: '#fff' }}>
Game Master Dashboard
Spielleiter Dashboard
</Typography>
{/* Player Characters Section */}
@@ -614,7 +618,7 @@ const handleUpdate = async () => {
border: '1px solid #444',
height: '345px'
}}>
<Typography variant="h5" sx={{ color: '#fff', mb: 2 }}>Player Characters</Typography>
<Typography variant="h5" sx={{ color: '#fff', mb: 2 }}>Spielercharaktere</Typography>
<Grid2 container spacing={2}>
{playerCharacters.map((character, index) => (
<Grid2 item xs={12} sm={6} md={3} key={index}>
@@ -677,7 +681,7 @@ const handleUpdate = async () => {
height: '345px'
}}>
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', mb: 2 }}>
<Typography variant="h5" sx={{ color: '#fff' }}>NPCs</Typography>
<Typography variant="h5" sx={{ color: '#fff' }}>NSCs</Typography>
<Button
variant="contained"
component={Link}
@@ -688,7 +692,7 @@ const handleUpdate = async () => {
'&:hover': { backgroundColor: '#9865f7' }
}}
>
Create NPC
NSC Erstellen
</Button>
</Box>
<Grid2 container spacing={2}>
@@ -734,7 +738,7 @@ const handleUpdate = async () => {
{npc.Race} - Level {npc.Level}
</Typography>
<Typography variant="body2" sx={{ color: '#bbb' }}>
Job: {npc.Job}
Beruf: {npc.Job}
</Typography>
<Typography variant="body2" sx={{
color: npc.Allied === 0
@@ -744,10 +748,10 @@ const handleUpdate = async () => {
: '#ff0000'
}}>
Status: {npc.Allied === 0
? 'Allied'
? 'Verbündet'
: npc.Allied === 1
? 'Neutral'
: 'Enemy'}
: 'Feindlich'}
</Typography>
</CardContent>
</Card>
@@ -758,10 +762,10 @@ const handleUpdate = async () => {
{/* Items Section */}
<Section
title="Items"
title="Gegenstände"
items={items}
createPath="/create-item"
createText="Create Item"
createText="Gegenstand Erstellen"
/>
<EditModal />
</Box>