模型预览
This commit is contained in:
Binary file not shown.
@@ -15,6 +15,7 @@ namespace NBF
|
||||
public void SetData(string message, Notices.NoticeType noticeType)
|
||||
{
|
||||
style.selectedIndex = (int)noticeType;
|
||||
TextContent.text = message;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,9 +207,8 @@ namespace NBF
|
||||
{
|
||||
if (_rotating != Vector3.zero && this.modelRoot != null)
|
||||
{
|
||||
Vector3 localRotation = modelRoot.localRotation.eulerAngles;
|
||||
localRotation += _rotating;
|
||||
modelRoot.localRotation = Quaternion.Euler(localRotation);
|
||||
// 使用 Quaternion 来避免欧拉角带来的问题
|
||||
modelRoot.Rotate(_rotating, Space.World);
|
||||
}
|
||||
|
||||
SetLayer(_root.gameObject, RENDER_LAYER);
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
<remark page="3" value="警告"/>
|
||||
</controller>
|
||||
<displayList>
|
||||
<image id="n1_r03u" name="box" src="r03uia" fileName="Images/Panels/ChatBgLeft.png" xy="0,0" size="330,76" color="#05cfa4">
|
||||
<image id="n1_r03u" name="box" src="r03uia" fileName="Images/Panels/ChatBgLeft.png" xy="0,0" size="330,76" color="#d8fbff">
|
||||
<gearLook controller="style" default="1,0,0,0"/>
|
||||
<gearColor controller="style" pages="0,2,3" values="#05cfa4|#fd6b6d|#faad14" default="#52c41a"/>
|
||||
<gearColor controller="style" pages="0,2,3" values="#d8fbff|#fd6b6d|#faad14" default="#52c41a"/>
|
||||
<relation target="" sidePair="width-width,height-height,left-left"/>
|
||||
</image>
|
||||
<text id="n2_r03u" name="TextTitle" xy="45,10" pivot="0.5,0.5" size="43,29" font="ui://6hgkvlaugkm7v" fontSize="20" color="#8bf3ff" text="成功"/>
|
||||
<text id="n2_r03u" name="TextTitle" xy="45,10" pivot="0.5,0.5" size="43,29" font="ui://6hgkvlaugkm7v" fontSize="20" color="#05cfa4" shadowColor="#000000" shadowOffset="1,1" text="成功">
|
||||
<gearColor controller="style" pages="0,1,2,3" values="#05cfa4,#000000|#52c41a,#000000|#fd6b6d,#000000|#faad14,#000000"/>
|
||||
</text>
|
||||
<text id="n3_r03u" name="TextContent" xy="44,39" size="270,24" font="ui://6hgkvlaugkm7w" fontSize="16" color="#d8fbff" vAlign="middle" autoSize="height" text="这个操作将不能恢复"/>
|
||||
<loader id="n4_r03u" name="icon" xy="14,16" size="22,22" url="ui://6hgkvlaur03uj6" fill="scale">
|
||||
<gearIcon controller="style" pages="0,2,3" values="ui://6hgkvlaur03uj6|ui://6hgkvlaur03uj4|ui://6hgkvlaur03uj5" default="ui://6hgkvlaur03uj3"/>
|
||||
|
||||
Reference in New Issue
Block a user