fix:1、删除部分不用的资源代码。2、a面修复bug
This commit is contained in:
@@ -77,37 +77,37 @@ namespace RedHotRoast
|
||||
ui.title.text = isTerm == 2 ? "View Credits" : title;
|
||||
|
||||
var color = new Color(172 / 255f, 131 / 255f, 113 / 255f, 1f);
|
||||
MarkdownKit.Instance.ShowAsRichText(ui.text_list, BisTerm ? "user" : "privacy", color, (success, state) => {
|
||||
if (success) {
|
||||
Debug.Log("内容加载成功!当前状态:" + state);
|
||||
}
|
||||
else {
|
||||
Debug.LogError("内容加载失败!当前状态:" + state);
|
||||
}
|
||||
}, 44);
|
||||
|
||||
// LoadKit.Instance.LoadAsset<TextAsset>("TextAsset", BisTerm ? "Term" : "Privacy", (txt) =>
|
||||
// {
|
||||
// content = txt.text;
|
||||
//
|
||||
// var str = getstr(content, 16327);
|
||||
//
|
||||
// foreach (var t in str)
|
||||
// {
|
||||
// var aRichTextField = new GRichTextField();
|
||||
// aRichTextField.SetSize(GRoot.inst.width, 100);
|
||||
// aRichTextField.color = new Color(0.64f, 0.36f, 0.12f, 1f);
|
||||
// // aRichTextField.strokeColor = Color.black;
|
||||
// // aRichTextField.stroke = 1;
|
||||
// aRichTextField.textFormat.size = 44;
|
||||
// aRichTextField.autoSize = AutoSizeType.Height;
|
||||
// aRichTextField.AddRelation(GRoot.inst, RelationType.Width);
|
||||
// aRichTextField.text = t;
|
||||
// ui.text_list.AddChild(aRichTextField);
|
||||
// MarkdownKit.Instance.ShowAsRichText(ui.text_list, BisTerm ? "user" : "privacy", color, (success, state) => {
|
||||
// if (success) {
|
||||
// Debug.Log("内容加载成功!当前状态:" + state);
|
||||
// }
|
||||
//
|
||||
// ui.text_list.EnsureBoundsCorrect();
|
||||
// });
|
||||
// else {
|
||||
// Debug.LogError("内容加载失败!当前状态:" + state);
|
||||
// }
|
||||
// }, 44);
|
||||
|
||||
LoadKit.Instance.LoadAsset<TextAsset>("TextAsset", BisTerm ? "Term" : "Privacy", (txt) =>
|
||||
{
|
||||
content = txt.text;
|
||||
|
||||
var str = getstr(content, 16327);
|
||||
|
||||
foreach (var t in str)
|
||||
{
|
||||
var aRichTextField = new GRichTextField();
|
||||
aRichTextField.SetSize(GRoot.inst.width, 100);
|
||||
aRichTextField.color = new Color(172 / 255f, 131 / 255f, 113 / 255f, 1f);
|
||||
// aRichTextField.strokeColor = Color.black;
|
||||
// aRichTextField.stroke = 1;
|
||||
aRichTextField.textFormat.size = 42;
|
||||
aRichTextField.autoSize = AutoSizeType.Height;
|
||||
aRichTextField.AddRelation(GRoot.inst, RelationType.Width);
|
||||
aRichTextField.text = t;
|
||||
ui.text_list.AddChild(aRichTextField);
|
||||
}
|
||||
|
||||
ui.text_list.EnsureBoundsCorrect();
|
||||
});
|
||||
|
||||
ui.btn_close.SetClick(CtrlCloseUI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user