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