art: vier Klassen-Embleme in 64 px — Medaillons für Maske und Roster

This commit is contained in:
torsten 2026-11-17 15:00:14 +01:00
parent ee29dd8213
commit 5b11e770b8
32 changed files with 350 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://80okew63jihb"
path="res://.godot/imported/emblem_dieb_64.png-88aa1dfc4e11bf018880043f8cae9816.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/objects/emblem_dieb_64.png"
dest_files=["res://.godot/imported/emblem_dieb_64.png-88aa1dfc4e11bf018880043f8cae9816.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b4n7e2wk01xnp"
path="res://.godot/imported/emblem_kaempfer_64.png-e3db0f9aee329f8662fbf69ff9208ce1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/objects/emblem_kaempfer_64.png"
dest_files=["res://.godot/imported/emblem_kaempfer_64.png-e3db0f9aee329f8662fbf69ff9208ce1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dk8dj7es61iuy"
path="res://.godot/imported/emblem_kleriker_64.png-443ef19166b6cc23ae9ff7e7a7fd72d1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/objects/emblem_kleriker_64.png"
dest_files=["res://.godot/imported/emblem_kleriker_64.png-443ef19166b6cc23ae9ff7e7a7fd72d1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://brsri6nnof7fe"
path="res://.godot/imported/emblem_magier_64.png-eb8556617b367ac38cdb7797cd347829.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/objects/emblem_magier_64.png"
dest_files=["res://.godot/imported/emblem_magier_64.png-eb8556617b367ac38cdb7797cd347829.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -24,6 +24,13 @@ const VOLK_PORTRAITS := {
"dwarf": "portrait_volk_zwerg_384",
"halfling": "portrait_volk_halbling_384",
}
## 64er Klassen-Embleme (Objekte im 96er-Raster).
const KLASSE_EMBLEME := {
"fighter": "emblem_kaempfer_64",
"cleric": "emblem_kleriker_64",
"magier": "emblem_magier_64",
"thief": "emblem_dieb_64",
}
const ABKUERZUNG := {
"str": "STÄ", "dex": "GES", "con": "KON",
"int": "INT", "wis": "WEI", "cha": "CHA",
@ -38,6 +45,7 @@ var _meldung := ""
# Referenzen für `_aktualisiere()`.
var _vorschau: TextureRect
var _emblem: TextureRect
var _name_feld: LineEdit
var _punkte: Label
var _abgeleitet: Label
@ -164,6 +172,15 @@ func _karte(figur: Dictionary, pos: Vector2) -> void:
tp.modulate = Color(0.85, 0.78, 0.62)
p.add_child(tp)
var emblem := TextureRect.new()
emblem.position = pos + Vector2(480, 252)
emblem.size = Vector2(64, 64)
emblem.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
emblem.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
emblem.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
emblem.texture = _klasse_bild(str(figur.get("class", "")))
_wurzel.add_child(emblem)
_knopf("Entfernen", pos + Vector2(24, 256), Vector2(260, 56),
_entfernen.bind(str(figur.get("id", ""))))
@ -236,6 +253,14 @@ func _baue_erstellung() -> void:
_vorschau.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
p.add_child(_vorschau)
_emblem = TextureRect.new()
_emblem.position = Vector2(252, 312)
_emblem.size = Vector2(64, 64)
_emblem.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
_emblem.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
_emblem.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
p.add_child(_emblem)
var gesicht := _label("Gesicht (HUD)", Vector2(40, 396), p)
gesicht.size = Vector2(288, 32)
gesicht.clip_text = true
@ -430,6 +455,8 @@ func _aktualisiere() -> void:
if _c == null:
return
_vorschau.texture = _volk_bild(_c.volk_id)
if _emblem != null:
_emblem.texture = _klasse_bild(_c.klasse_id)
for id in _volk_knoepfe:
_volk_knoepfe[id].modulate = Color(1.45, 1.25, 0.95) \
@ -483,6 +510,11 @@ func _volk_bild(volk_id: String) -> Texture2D:
return load("res://assets/gemalt/%s.png" % id)
func _klasse_bild(klasse_id: String) -> Texture2D:
var id: String = KLASSE_EMBLEME.get(klasse_id, "emblem_kaempfer_64")
return load("res://assets/objects/%s.png" % id)
func _portrait_von(figur: Dictionary) -> String:
var p := str(figur.get("portrait", ""))
return p if not p.is_empty() else _standard_portrait(str(figur.get("class", "")))