mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
e4cf3405bc
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "An apple",
|
||||
description: "Looks refreshing",
|
||||
name: "Apple",
|
||||
description: "Red and juicy.",
|
||||
kind: Consumable(
|
||||
kind: Apple,
|
||||
effect: Health((
|
||||
|
@ -1,8 +1,9 @@
|
||||
Item(
|
||||
name: "Boost rod",
|
||||
description: "Your legs feel full of energy while holding this",
|
||||
name: "Weightless Rod",
|
||||
description: "The sky is the limit.",
|
||||
kind: Tool(
|
||||
kind: Debug(Boost),
|
||||
power: 0,
|
||||
),
|
||||
)
|
||||
// And the ground is pretty hard at maximum velocity...
|
@ -1,8 +1,9 @@
|
||||
Item(
|
||||
name: "Possession rod",
|
||||
description: "Your body seems loose while holding this",
|
||||
name: "Rod of Possession",
|
||||
description: "It's fixed on my branch.",
|
||||
kind: Tool(
|
||||
kind: Debug(Possess),
|
||||
power: 0,
|
||||
),
|
||||
)
|
||||
// ... as zesterer always uses to tell us.
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A blue flower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "Blue Flower",
|
||||
description: "Matches the color of the sky.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A pink flower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "Pink Flower",
|
||||
description: "Looks like a lollipop.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A red flower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "Red Flower",
|
||||
description: "Roses are red...",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A sunflower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "Sunflower",
|
||||
description: "Smells like summer.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A white flower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "White flower",
|
||||
description: "Pure and precious.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "A yellow flower",
|
||||
description: "Look beautiful",
|
||||
kind: Ingredient(Flower),
|
||||
name: "Yellow Flower",
|
||||
description: "Glows like the sun.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "Long grass",
|
||||
description: "Just some grass",
|
||||
kind: Ingredient(Grass),
|
||||
name: "Long Grass",
|
||||
description: "Greener than an orc's snout.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "Medium grass",
|
||||
description: "Just some grass",
|
||||
kind: Ingredient(Grass),
|
||||
name: "Medium Grass",
|
||||
description: "Greener than an orc's snout.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Item(
|
||||
name: "Short grass",
|
||||
description: "Just some grass",
|
||||
kind: Ingredient(Grass),
|
||||
name: "Short Grass",
|
||||
description: "Greener than an orc's snout.",
|
||||
kind: Ingredient,
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "A mushroom",
|
||||
description: "It's dirty, but looks edible",
|
||||
name: "Mushroom",
|
||||
description: "Hopefully this one is not poisonous.",
|
||||
kind: Consumable(
|
||||
kind: Mushroom,
|
||||
effect: Health((
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
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: Velorite,
|
||||
effect: Xp(50),
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Velorite Fragment",
|
||||
description: "It's dirty, but looks edible",
|
||||
description: "Small runes sparkle on its surface.",
|
||||
kind: Consumable(
|
||||
kind: VeloriteFrag,
|
||||
effect: Xp(20),
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first axe",
|
||||
description: "A dusty axe that looks surprisingly weak",
|
||||
name: "Notched Axe",
|
||||
description: "Every dent tells the story of a chopped tree.",
|
||||
kind: Tool(
|
||||
kind: Axe,
|
||||
power: 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first bow",
|
||||
description: "A dusty bow that looks surprisingly weak",
|
||||
name: "Uneven Bow",
|
||||
description: "Someone carved his initials into it...",
|
||||
kind: Tool(
|
||||
kind: Bow,
|
||||
power: 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first dagger",
|
||||
description: "A dusty dagger that looks surprisingly weak",
|
||||
name: "Sharp Kitchen Knife",
|
||||
description: "Great for cutting meat.",
|
||||
kind: Tool(
|
||||
kind: Dagger,
|
||||
power: 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first hammer",
|
||||
description: "A dusty hammer that looks surprisingly weak",
|
||||
name: "Sturdy Old Hammer",
|
||||
description: "'Property of...' The rest is missing. ",
|
||||
kind: Tool(
|
||||
kind: Hammer,
|
||||
power: 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first staff",
|
||||
description: "A dusty staff that looks surprisingly weak",
|
||||
description: "Smells like resin and magic.",
|
||||
kind: Tool(
|
||||
kind: Staff,
|
||||
power: 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
Item(
|
||||
name: "Your first sword",
|
||||
description: "A dusty sword that looks surprisingly weak",
|
||||
name: "Battered Sword",
|
||||
description: "Held together by Rust and hope.",
|
||||
kind: Tool(
|
||||
kind: Sword,
|
||||
power: 10,
|
||||
|
BIN
assets/voxygen/background/map.png
(Stored with Git LFS)
BIN
assets/voxygen/background/map.png
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/element/help.png
(Stored with Git LFS)
BIN
assets/voxygen/element/help.png
(Stored with Git LFS)
Binary file not shown.
@ -41,7 +41,7 @@
|
||||
(0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0,
|
||||
),
|
||||
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,
|
||||
),
|
||||
Consumable(Velorite): VoxTrans(
|
||||
|
BIN
assets/voxygen/voxel/sprite/mushrooms/mushroom-10.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/sprite/mushrooms/mushroom-10.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -196,7 +196,7 @@ impl<'a> Widget for Bag<'a> {
|
||||
.with_tooltip(
|
||||
self.tooltip_manager,
|
||||
&item.name(),
|
||||
&format!("{}\n{}", item.name(), item.description()),
|
||||
&format!("{}", /*item.kind, item.effect(), */ item.description()),
|
||||
&item_tooltip,
|
||||
)
|
||||
.set(state.ids.inv_slots[i], ui)
|
||||
|
@ -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 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
|
||||
Image::new(self.imgs.map_indicator)
|
||||
.bottom_left_with_margins_on(state.ids.grid, y, x - (12.0 * 1.4) / 2.0)
|
||||
|
@ -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 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
|
||||
Image::new(self.imgs.indicator_mmap)
|
||||
.bottom_left_with_margins_on(state.ids.grid, y, x - 2.5)
|
||||
|
@ -124,7 +124,7 @@ fn sprite_config_for(kind: BlockKind) -> Option<SpriteConfig> {
|
||||
wind_sway: 0.0,
|
||||
}),
|
||||
BlockKind::Mushroom => Some(SpriteConfig {
|
||||
variations: 10,
|
||||
variations: 11,
|
||||
wind_sway: 0.0,
|
||||
}),
|
||||
BlockKind::Liana => Some(SpriteConfig {
|
||||
@ -623,6 +623,13 @@ impl<V: RectRasterableVol> Terrain<V> {
|
||||
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),
|
||||
make_model(
|
||||
|
Loading…
Reference in New Issue
Block a user