mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Asset Update
Former-commit-id: 2f3e58679059c3c97cec9312c6fa436d5510b901
This commit is contained in:
parent
15816bdf6d
commit
757fbdd653
BIN
assets/voxygen/element/buttons/grid.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/buttons/grid.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/frames/window_3.vox
(Stored with Git LFS)
BIN
assets/voxygen/element/frames/window_3.vox
(Stored with Git LFS)
Binary file not shown.
BIN
assets/voxygen/element/icons/back.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/back.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/icons/belt.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/belt.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/icons/chest.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/chest.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/icons/gem.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/gem.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/icons/hands.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/hands.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/icons/head.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/head.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -13,6 +13,7 @@ widget_ids! {
|
|||||||
charwindow_exp_progress_rectangle,
|
charwindow_exp_progress_rectangle,
|
||||||
charwindow_exp_rectangle,
|
charwindow_exp_rectangle,
|
||||||
charwindow_frame,
|
charwindow_frame,
|
||||||
|
content_align,
|
||||||
// charwindow_icon,
|
// charwindow_icon,
|
||||||
charwindow_rectangle,
|
charwindow_rectangle,
|
||||||
charwindow_tab1,
|
charwindow_tab1,
|
||||||
@ -29,6 +30,33 @@ widget_ids! {
|
|||||||
tab_small_closed,
|
tab_small_closed,
|
||||||
xp_charwindow,
|
xp_charwindow,
|
||||||
divider_1,
|
divider_1,
|
||||||
|
head_bg,
|
||||||
|
shoulders_bg,
|
||||||
|
hands_bg,
|
||||||
|
belt_bg,
|
||||||
|
legs_bg,
|
||||||
|
feet_bg,
|
||||||
|
ring_r_bg,
|
||||||
|
ring_l_bg,
|
||||||
|
tabard_bg,
|
||||||
|
chest_bg,
|
||||||
|
back_bg,
|
||||||
|
gem_bg,
|
||||||
|
necklace_bg,
|
||||||
|
head_grid,
|
||||||
|
shoulders_grid,
|
||||||
|
hands_grid,
|
||||||
|
belt_grid,
|
||||||
|
legs_grid,
|
||||||
|
feet_grid,
|
||||||
|
ring_r_grid,
|
||||||
|
ring_l_grid,
|
||||||
|
tabard_grid,
|
||||||
|
chest_grid,
|
||||||
|
back_grid,
|
||||||
|
gem_grid,
|
||||||
|
necklace_grid,
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -84,9 +112,9 @@ impl<'a> Widget for CharacterWindow<'a> {
|
|||||||
|
|
||||||
// Icon
|
// Icon
|
||||||
//Image::new(self.imgs.charwindow_icon)
|
//Image::new(self.imgs.charwindow_icon)
|
||||||
//.w_h(40.0, 40.0)
|
//.w_h(40.0, 40.0)
|
||||||
//.top_left_with_margins_on(state.charwindow_frame, 4.0, 4.0)
|
//.top_left_with_margins_on(state.charwindow_frame, 4.0, 4.0)
|
||||||
//.set(state.charwindow_icon, ui);
|
//.set(state.charwindow_icon, ui);
|
||||||
|
|
||||||
// X-Button
|
// X-Button
|
||||||
if Button::image(self.imgs.close_button)
|
if Button::image(self.imgs.close_button)
|
||||||
@ -108,25 +136,41 @@ impl<'a> Widget for CharacterWindow<'a> {
|
|||||||
.color(TEXT_COLOR)
|
.color(TEXT_COLOR)
|
||||||
.set(state.charwindow_title, ui);
|
.set(state.charwindow_title, ui);
|
||||||
|
|
||||||
|
// Content Alignment
|
||||||
|
Rectangle::fill_with([95.0 * 4.0, 108.0 * 4.0], color::TRANSPARENT)
|
||||||
|
.mid_top_with_margin_on(state.charwindow_frame, 40.0)
|
||||||
|
.set(state.content_align, ui);
|
||||||
|
|
||||||
|
// Contents
|
||||||
|
|
||||||
|
//Head BG and Grid
|
||||||
|
|
||||||
|
Image::new(self.imgs.head_bg)
|
||||||
|
.w_h(28.0 * 4.0, 28.0 * 4.0)
|
||||||
|
.mid_top_with_margin_on(state.content_align, 5.0)
|
||||||
|
.set(state.head_bg, ui);
|
||||||
|
|
||||||
|
// Stats Tab
|
||||||
|
|
||||||
// Tab BG
|
// Tab BG
|
||||||
Image::new(self.imgs.tab_bg)
|
Image::new(self.imgs.tab_bg)
|
||||||
.w_h(50.0*4.0, 115.0*4.0)
|
.w_h(50.0 * 4.0, 115.0 * 4.0)
|
||||||
.top_left_with_margins_on(state.charwindow_frame,28.0, -200.0)
|
.top_left_with_margins_on(state.charwindow_frame, 28.0, -200.0)
|
||||||
.set(state.charwindow_tab_bg, ui);
|
.set(state.charwindow_tab_bg, ui);
|
||||||
|
|
||||||
// Tab Rectangle
|
// Tab Rectangle
|
||||||
Rectangle::fill_with([45.0*4.0, 104.0*4.0], color::TRANSPARENT)
|
Rectangle::fill_with([45.0 * 4.0, 104.0 * 4.0], color::TRANSPARENT)
|
||||||
.top_left_with_margins_on(state.charwindow_tab_bg, 7.0*4.0, 4.0*4.0)
|
.top_left_with_margins_on(state.charwindow_tab_bg, 7.0 * 4.0, 4.0 * 4.0)
|
||||||
.set(state.charwindow_rectangle, ui);
|
.set(state.charwindow_rectangle, ui);
|
||||||
|
|
||||||
// Tab Button
|
// Tab Button -> Add that back in when we have multiple tabs
|
||||||
Button::image(self.imgs.charwindow_tab)
|
// Button::image(self.imgs.charwindow_tab)
|
||||||
.w_h(65.0, 23.0)
|
//.w_h(65.0, 23.0)
|
||||||
.top_left_with_margins_on(state.charwindow_tab_bg, -18.0, 2.0)
|
//.top_left_with_margins_on(state.charwindow_tab_bg, -18.0, 2.0)
|
||||||
.label("Stats")
|
//.label("Stats")
|
||||||
.label_color(TEXT_COLOR)
|
//.label_color(TEXT_COLOR)
|
||||||
.label_font_size(14)
|
//.label_font_size(14)
|
||||||
.set(state.charwindow_tab1, ui);
|
//.set(state.charwindow_tab1, ui);
|
||||||
|
|
||||||
Text::new("1") //Add in actual Character Level
|
Text::new("1") //Add in actual Character Level
|
||||||
.mid_top_with_margin_on(state.charwindow_rectangle, 10.0)
|
.mid_top_with_margin_on(state.charwindow_rectangle, 10.0)
|
||||||
@ -159,6 +203,13 @@ impl<'a> Widget for CharacterWindow<'a> {
|
|||||||
.color(TEXT_COLOR)
|
.color(TEXT_COLOR)
|
||||||
.set(state.charwindow_tab1_exp, ui);
|
.set(state.charwindow_tab1_exp, ui);
|
||||||
|
|
||||||
|
// Divider
|
||||||
|
|
||||||
|
Image::new(self.imgs.divider)
|
||||||
|
.w_h(38.0 * 4.0, 5.0 * 4.0)
|
||||||
|
.mid_top_with_margin_on(state.charwindow_tab1_exp, 30.0)
|
||||||
|
.set(state.divider_1, ui);
|
||||||
|
|
||||||
// Stats
|
// Stats
|
||||||
Text::new(
|
Text::new(
|
||||||
"Stamina\n\
|
"Stamina\n\
|
||||||
@ -169,7 +220,7 @@ impl<'a> Widget for CharacterWindow<'a> {
|
|||||||
\n\
|
\n\
|
||||||
Intelligence",
|
Intelligence",
|
||||||
)
|
)
|
||||||
.top_left_with_margins_on(state.charwindow_rectangle, 100.0, 20.0)
|
.top_left_with_margins_on(state.charwindow_rectangle, 140.0, 5.0)
|
||||||
.font_id(self.fonts.opensans)
|
.font_id(self.fonts.opensans)
|
||||||
.font_size(16)
|
.font_size(16)
|
||||||
.color(TEXT_COLOR)
|
.color(TEXT_COLOR)
|
||||||
@ -184,7 +235,7 @@ impl<'a> Widget for CharacterWindow<'a> {
|
|||||||
\n\
|
\n\
|
||||||
124124",
|
124124",
|
||||||
)
|
)
|
||||||
.right_from(state.charwindow_tab1_statnames, 10.0)
|
.top_right_with_margins_on(state.charwindow_rectangle, 140.0, 5.0)
|
||||||
.font_id(self.fonts.opensans)
|
.font_id(self.fonts.opensans)
|
||||||
.font_size(16)
|
.font_size(16)
|
||||||
.color(TEXT_COLOR)
|
.color(TEXT_COLOR)
|
||||||
|
@ -8,6 +8,27 @@ image_ids! {
|
|||||||
inv_grid: "/voxygen/element/frames/inv_grid.vox",
|
inv_grid: "/voxygen/element/frames/inv_grid.vox",
|
||||||
inv_slot: "/voxygen/element/buttons/inv_slot.vox",
|
inv_slot: "/voxygen/element/buttons/inv_slot.vox",
|
||||||
|
|
||||||
|
// Grid
|
||||||
|
grid: "/voxygen/element/buttons/grid.vox",
|
||||||
|
grid_hover: "/voxygen/element/buttons/grid.vox",
|
||||||
|
grid_press: "/voxygen/element/buttons/grid.vox",
|
||||||
|
|
||||||
|
// Char Window BG
|
||||||
|
|
||||||
|
head_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
shoulders_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
hands_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
belt_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
legs_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
feet_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
ring_r_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
ring_l_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
tabard_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
chest_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
back_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
gem_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
necklace_bg: "/voxygen/element/icons/head.vox",
|
||||||
|
|
||||||
<VoxelMs9Graphic>
|
<VoxelMs9Graphic>
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user