armortools icon indicating copy to clipboard operation
armortools copied to clipboard

How to open the material tab

Open Fei1919 opened this issue 3 years ago • 5 comments

Somehow the material tab was closed, how to reopen it again? image_2022-02-21_232233

Fei1919 avatar Feb 21 '22 22:02 Fei1919

It has height zero. You can change its height by dragging it upwards. Alternatively you can reset the ArmorPaint layout in the preferences dialog you find in the edit menu on the top.

MathemanFlo avatar Feb 22 '22 05:02 MathemanFlo

@luboslenco I looked into it and it is definitely a bug. I use these configs on a relatively big screen configs.zip According to UISidebar.hx the height can not become smaller than 32px

if (Config.raw.layout[LayoutSidebarH0] + my > 32 && Config.raw.layout[LayoutSidebarH1] - my > 32) {
	Console.info("LayoutSidebarH1: " + Config.raw.layout[LayoutSidebarH1]);
	Config.raw.layout[LayoutSidebarH0] += my;
	Config.raw.layout[LayoutSidebarH1] -= my;
}

But this mechanism seems to be broken because the height is calculated the wrong way. You have to drag the height below the window to get to the minimum height. grafik The mouse cursor has to be somewhere here to get there grafik

Maximizing the window and restoring it again/resizing the window fixes the issue and the calculation works again. Therefore I assume something is not set properly.

MathemanFlo avatar Feb 22 '22 07:02 MathemanFlo

@luboslenco I looked into it and it is definitely a bug. I use these configs on a relatively big screen configs.zip According to UISidebar.hx the height can not become smaller than 32px

if (Config.raw.layout[LayoutSidebarH0] + my > 32 && Config.raw.layout[LayoutSidebarH1] - my > 32) {
	Console.info("LayoutSidebarH1: " + Config.raw.layout[LayoutSidebarH1]);
	Config.raw.layout[LayoutSidebarH0] += my;
	Config.raw.layout[LayoutSidebarH1] -= my;
}

But this mechanism seems to be broken because the height is calculated the wrong way. You have to drag the height below the window to get to the minimum height. grafik The mouse cursor has to be somewhere here to get there grafik

Maximizing the window and restoring it again/resizing the window fixes the issue and the calculation works again. Therefore I assume something is not set properly.

Fei1919 avatar Feb 22 '22 17:02 Fei1919

Resetting the layout seems to work, thanks.

Fei1919 avatar Feb 22 '22 17:02 Fei1919

@luboslenco maybe reopen it and mark it as bug because it is definitely a small nasty issue?

MathemanFlo avatar Feb 22 '22 17:02 MathemanFlo