Merge branch 'pfau/keybinds_item_desc' into 'master'

Updated: Help Window, Map, Item Descriptions

See merge request veloren/veloren!633
This commit is contained in:
Monty Marz 2019-10-27 22:22:40 +00:00
commit e4cf3405bc
29 changed files with 69 additions and 57 deletions

View File

@ -1,6 +1,6 @@
Item( Item(
name: "An apple", name: "Apple",
description: "Looks refreshing", description: "Red and juicy.",
kind: Consumable( kind: Consumable(
kind: Apple, kind: Apple,
effect: Health(( effect: Health((

View File

@ -1,8 +1,9 @@
Item( Item(
name: "Boost rod", name: "Weightless Rod",
description: "Your legs feel full of energy while holding this", description: "The sky is the limit.",
kind: Tool( kind: Tool(
kind: Debug(Boost), kind: Debug(Boost),
power: 0, power: 0,
), ),
) )
// And the ground is pretty hard at maximum velocity...

View File

@ -1,8 +1,9 @@
Item( Item(
name: "Possession rod", name: "Rod of Possession",
description: "Your body seems loose while holding this", description: "It's fixed on my branch.",
kind: Tool( kind: Tool(
kind: Debug(Possess), kind: Debug(Possess),
power: 0, power: 0,
), ),
) )
// ... as zesterer always uses to tell us.

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A blue flower", name: "Blue Flower",
description: "Look beautiful", description: "Matches the color of the sky.",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A pink flower", name: "Pink Flower",
description: "Look beautiful", description: "Looks like a lollipop.",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A red flower", name: "Red Flower",
description: "Look beautiful", description: "Roses are red...",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A sunflower", name: "Sunflower",
description: "Look beautiful", description: "Smells like summer.",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A white flower", name: "White flower",
description: "Look beautiful", description: "Pure and precious.",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "A yellow flower", name: "Yellow Flower",
description: "Look beautiful", description: "Glows like the sun.",
kind: Ingredient(Flower), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "Long grass", name: "Long Grass",
description: "Just some grass", description: "Greener than an orc's snout.",
kind: Ingredient(Grass), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "Medium grass", name: "Medium Grass",
description: "Just some grass", description: "Greener than an orc's snout.",
kind: Ingredient(Grass), kind: Ingredient,
) )

View File

@ -1,5 +1,5 @@
Item( Item(
name: "Short grass", name: "Short Grass",
description: "Just some grass", description: "Greener than an orc's snout.",
kind: Ingredient(Grass), kind: Ingredient,
) )

View File

@ -1,6 +1,6 @@
Item( Item(
name: "A mushroom", name: "Mushroom",
description: "It's dirty, but looks edible", description: "Hopefully this one is not poisonous.",
kind: Consumable( kind: Consumable(
kind: Mushroom, kind: Mushroom,
effect: Health(( effect: Health((

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Velorite", name: "Velorite",
description: "It's smooth and looks edible", description: "Just a slight touch makes you feel the knowledge of ancient times.",
kind: Consumable( kind: Consumable(
kind: Velorite, kind: Velorite,
effect: Xp(50), effect: Xp(50),

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Velorite Fragment", name: "Velorite Fragment",
description: "It's dirty, but looks edible", description: "Small runes sparkle on its surface.",
kind: Consumable( kind: Consumable(
kind: VeloriteFrag, kind: VeloriteFrag,
effect: Xp(20), effect: Xp(20),

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first axe", name: "Notched Axe",
description: "A dusty axe that looks surprisingly weak", description: "Every dent tells the story of a chopped tree.",
kind: Tool( kind: Tool(
kind: Axe, kind: Axe,
power: 10, power: 10,

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first bow", name: "Uneven Bow",
description: "A dusty bow that looks surprisingly weak", description: "Someone carved his initials into it...",
kind: Tool( kind: Tool(
kind: Bow, kind: Bow,
power: 10, power: 10,

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first dagger", name: "Sharp Kitchen Knife",
description: "A dusty dagger that looks surprisingly weak", description: "Great for cutting meat.",
kind: Tool( kind: Tool(
kind: Dagger, kind: Dagger,
power: 10, power: 10,

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first hammer", name: "Sturdy Old Hammer",
description: "A dusty hammer that looks surprisingly weak", description: "'Property of...' The rest is missing. ",
kind: Tool( kind: Tool(
kind: Hammer, kind: Hammer,
power: 10, power: 10,

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first staff", name: "Your first staff",
description: "A dusty staff that looks surprisingly weak", description: "Smells like resin and magic.",
kind: Tool( kind: Tool(
kind: Staff, kind: Staff,
power: 10, power: 10,

View File

@ -1,6 +1,6 @@
Item( Item(
name: "Your first sword", name: "Battered Sword",
description: "A dusty sword that looks surprisingly weak", description: "Held together by Rust and hope.",
kind: Tool( kind: Tool(
kind: Sword, kind: Sword,
power: 10, power: 10,

BIN
assets/voxygen/background/map.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/voxygen/element/help.png (Stored with Git LFS)

Binary file not shown.

View File

@ -41,7 +41,7 @@
(0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0, (0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0,
), ),
Consumable(Mushroom): VoxTrans( Consumable(Mushroom): VoxTrans(
"voxel.sprite.mushrooms.mushroom-4", "voxel.sprite.mushrooms.mushroom-10",
(0.0, 0.0, 0.0), (-50.0, 70.0, 40.0), 1.0, (0.0, 0.0, 0.0), (-50.0, 70.0, 40.0), 1.0,
), ),
Consumable(Velorite): VoxTrans( Consumable(Velorite): VoxTrans(

BIN
assets/voxygen/voxel/sprite/mushrooms/mushroom-10.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -196,7 +196,7 @@ impl<'a> Widget for Bag<'a> {
.with_tooltip( .with_tooltip(
self.tooltip_manager, self.tooltip_manager,
&item.name(), &item.name(),
&format!("{}\n{}", item.name(), item.description()), &format!("{}", /*item.kind, item.effect(), */ item.description()),
&item_tooltip, &item_tooltip,
) )
.set(state.ids.inv_slots[i], ui) .set(state.ids.inv_slots[i], ui)

View File

@ -157,7 +157,7 @@ impl<'a> Widget for Map<'a> {
let worldsize = 32768.0; // TODO This has to get the actual world size and not be hardcoded let worldsize = 32768.0; // TODO This has to get the actual world size and not be hardcoded
let x = player_pos.x as f64 / worldsize * 700.0; let x = player_pos.x as f64 / worldsize * 700.0;
let y = player_pos.y as f64 / worldsize * 700.0; let y = (1.0 - player_pos.y as f64 / worldsize) * 700.0;
// Indicator // Indicator
Image::new(self.imgs.map_indicator) Image::new(self.imgs.map_indicator)
.bottom_left_with_margins_on(state.ids.grid, y, x - (12.0 * 1.4) / 2.0) .bottom_left_with_margins_on(state.ids.grid, y, x - (12.0 * 1.4) / 2.0)

View File

@ -113,7 +113,7 @@ impl<'a> Widget for MiniMap<'a> {
let worldsize = 32768.0; // TODO This has to get the actual world size and not be hardcoded let worldsize = 32768.0; // TODO This has to get the actual world size and not be hardcoded
let x = player_pos.x as f64 / worldsize * 92.0 * 2.0; let x = player_pos.x as f64 / worldsize * 92.0 * 2.0;
let y = player_pos.y as f64 / worldsize * 82.0 * 2.0; let y = (1.0 - player_pos.y as f64 / worldsize) * 82.0 * 2.0;
// Indicator // Indicator
Image::new(self.imgs.indicator_mmap) Image::new(self.imgs.indicator_mmap)
.bottom_left_with_margins_on(state.ids.grid, y, x - 2.5) .bottom_left_with_margins_on(state.ids.grid, y, x - 2.5)

View File

@ -124,7 +124,7 @@ fn sprite_config_for(kind: BlockKind) -> Option<SpriteConfig> {
wind_sway: 0.0, wind_sway: 0.0,
}), }),
BlockKind::Mushroom => Some(SpriteConfig { BlockKind::Mushroom => Some(SpriteConfig {
variations: 10, variations: 11,
wind_sway: 0.0, wind_sway: 0.0,
}), }),
BlockKind::Liana => Some(SpriteConfig { BlockKind::Liana => Some(SpriteConfig {
@ -623,6 +623,13 @@ impl<V: RectRasterableVol> Terrain<V> {
Vec3::new(-6.0, -6.0, 0.0), Vec3::new(-6.0, -6.0, 0.0),
), ),
), ),
(
(BlockKind::Mushroom, 10),
make_model(
"voxygen.voxel.sprite.mushrooms.mushroom-10",
Vec3::new(-6.0, -6.0, 0.0),
),
),
( (
(BlockKind::Liana, 0), (BlockKind::Liana, 0),
make_model( make_model(