Page 1 of 1

Hello! Black market fix screen

Posted: Sun Aug 20, 2017 9:53 pm
by Airat9000
;) please help in update mod
viewtopic.php?f=92&t=30889&start=220
bug in screen example
2017-08-21_0-51-48.png
2017-08-21_0-51-48.png (1.59 MiB) Viewed 4101 times

Re: Hello!

Posted: Mon Aug 21, 2017 1:41 pm
by Airat9000
need help ((

Re: Hello! Black market fix screen

Posted: Wed Aug 23, 2017 10:26 am
by darkfrei
Did you try fix it by yourself?

Re: Hello! Black market fix screen

Posted: Wed Aug 23, 2017 7:26 pm
by Airat9000
darkfrei wrote:Did you try fix it by yourself?
yes author not connect and update ((

Re: Hello! Black market fix screen

Posted: Thu Aug 24, 2017 7:13 am
by darkfrei
Airat9000 wrote:
darkfrei wrote:Did you try fix it by yourself?
yes author not connect and update ((
In the mod portal is no notification. You must write him PM on the forum, only this will be read in the next time.

Re: Hello! Black market fix screen

Posted: Thu Aug 24, 2017 12:41 pm
by Airat9000
darkfrei wrote:
Airat9000 wrote:
darkfrei wrote:Did you try fix it by yourself?
yes author not connect and update ((
In the mod portal is no notification. You must write him PM on the forum, only this will be read in the next time.
I wrote to him, but he is silent ..

Help please developers mod fix

Posted: Fri Sep 01, 2017 12:40 am
by Airat9000
need help correct mod - the modders do not want anything to help or do not know, I'll forgive the help from you developers can you tell me how to fix the bug.

нужно помощь поправить мод - мододелы не хотят ни в чем помощь или не знаю, прощу помощи у вас разработчики может вы подскажете как поправить баг.

post
viewtopic.php?f=25&t=52033

Re: Hello! Black market fix screen

Posted: Fri Sep 01, 2017 6:43 am
by Airat9000
find code in work to styles tables

Code: Select all

data:extend(
	{
		--------------------------------------------------------------------------------------
		{
			type = "font",
			name = "font_blkmkt",
			from = "default",
			border = false,
			size = 14
		},
		{
			type = "font",
			name = "font_bold_blkmkt",
			from = "default-bold",
			border = false,
			size = 14
		},
		
		--------------------------------------------------------------------------------------
		{
			type = "sprite",
			name = "sprite_main_blkmkt",
			filename = "__BlackMarket__/graphics/but-main.png",
			width = 22,
			height = 22,
		},
		{
			type = "sprite",
			name = "sprite_energy_blkmkt",
			filename = "__BlackMarket__/graphics/energy.png",
			width = 22,
			height = 22,
		},
	}
)		

--------------------------------------------------------------------------------------
local default_gui = data.raw["gui-style"].default

default_gui.frame_blkmkt_style = 
{
	type="frame_style",
	parent="frame_style",
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	resize_row_to_width = true,
	resize_to_row_height = true,
	-- max_on_row = 1,
}

default_gui.flow_blkmkt_style = 
{
	type = "flow_style",
	
	top_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	right_padding = 0,
	
	horizontal_spacing = 2,
	vertical_spacing = 2,
	resize_row_to_width = true,
	resize_to_row_height = true,
	max_on_row = 1,
	
	graphical_set = { type = "none" },
}

default_gui.table_blkmkt_style =
{
	type = "table_style",
	horizontal_spacing = 5,
	vertical_spacing = 2,
	resize_row_to_width = true,
	resize_to_row_height = true,
	max_on_row = 1,
}

--------------------------------------------------------------------------------------
default_gui.label_blkmkt_style =
{
	type="label_style",
	parent="label_style",
	font="font_blkmkt",
	align = "left",
	default_font_color={r=1, g=1, b=1},
	hovered_font_color={r=1, g=1, b=1},
	top_padding = 1,
	right_padding = 1,
	bottom_padding = 0,
	left_padding = 1,
}

default_gui.label_bold_blkmkt_style =
{
	type="label_style",
	parent="label_blkmkt_style",
	font="font_bold_blkmkt",
	default_font_color={r=1, g=1, b=0.5},
	hovered_font_color={r=1, g=1, b=0.5},
}

default_gui.textfield_blkmkt_style =
{
    type = "textfield_style",
	font="font_bold_blkmkt",
	align = "left",
    font_color = {},
	default_font_color={r=1, g=1, b=1},
	hovered_font_color={r=1, g=1, b=1},
    selection_background_color= {r=0.66, g=0.7, b=0.83},
	top_padding = 0,
	bottom_padding = 0,
	left_padding = 1,
	right_padding = 1,
	minimal_width = 50,
	maximal_width = 400,
	graphical_set =
	{
		type = "composition",
		filename = "__core__/graphics/gui.png",
		priority = "extra-high-no-scale",
		corner_size = {3, 3},
		position = {16, 0}
	},
}    

default_gui.checkbox_blkmkt_style =
{
	type = "checkbox_style",
	parent="checkbox_style",
	font = "font_bold_blkmkt",
	font_color = {r=1, g=1, b=1},
	top_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	right_padding = 2,
	-- minimal_height = 32,
	-- maximal_height = 32,
}

default_gui.button_blkmkt_style = 
{
	type="button_style",
	parent="button_style",
	font="font_bold_blkmkt",
	align = "center",
	default_font_color={r=1, g=1, b=1},
	hovered_font_color={r=1, g=1, b=1},
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	left_click_sound =
	{
		{
		  filename = "__core__/sound/gui-click.ogg",
		  volume = 1
		}
	},
}

default_gui.button_blkmkt_credits_style = 
{
	type="button_style",
	parent="button_style",
	font="font_bold_blkmkt",
	align = "center",
	default_font_color={r=1, g=1, b=1},
	hovered_font_color={r=1, g=1, b=1},
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	height = 36,
	scalable = false,
	left_click_sound =
	{
		{
		  filename = "__core__/sound/gui-click.ogg",
		  volume = 1
		}
	},
}

--------------------------------------------------------------------------------------
default_gui.sprite_main_blkmkt_style = 
{
	type="button_style",
	parent="button_style",
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	height = 36,
	width = 36,
	scalable = false,
}

default_gui.sprite_group_blkmkt_style = 
{
	type="button_style",
	parent="button_style",
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	width = 64,
	height = 64,
	scalable = false,
	default_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
	hovered_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
	clicked_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
	disabled_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
}

default_gui.sprite_obj_blkmkt_style = 
{
	type="button_style",
	parent="button_style",
	top_padding = 0,
	right_padding = 0,
	bottom_padding = 0,
	left_padding = 0,
	height = 32,
	width = 32,
	-- minimal_width = 32,
	-- minimal_height = 32,
	scalable = false,
	default_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
	hovered_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 32, 0, 32, 32),
	clicked_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 64, 0, 32, 32),
	disabled_graphical_set = extract_monolith("__BlackMarket__/graphics/gui.png", 0, 0, 32, 32),
}

Re: Help please developers mod fix

Posted: Fri Sep 01, 2017 6:50 am
by Koub
[Koub] Topic moved to modding help

Re: Hello! Black market fix screen

Posted: Sat Sep 02, 2017 4:46 am
by Airat9000
:D temp fixed!
all that I could do with my knowledge.

все что смог сделать и моими знаниями.
2017-09-02_7-42-42.png
2017-09-02_7-42-42.png (1.7 MiB) Viewed 3892 times
2017-09-02_7-42-28.png
2017-09-02_7-42-28.png (1.69 MiB) Viewed 3892 times
BlackMarket_1.0.32.zip
(1.2 MiB) Downloaded 150 times