Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bc6c0e31bd |
@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform } from 'cc';
|
import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
||||||
import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
||||||
import { getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
import { getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
||||||
|
|
||||||
@ -19,6 +19,7 @@ export class Paytable extends Component {
|
|||||||
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
|
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
|
||||||
|
|
||||||
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
|
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
|
||||||
|
this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment()
|
||||||
|
|
||||||
this.scrollView.node.on('scrolling', this.onScrolling, this);
|
this.scrollView.node.on('scrolling', this.onScrolling, this);
|
||||||
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
|
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform } from 'cc';
|
import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
||||||
import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
||||||
import { getCsymbol, getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
import { getCsymbol, getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
@ -16,6 +16,7 @@ export class Rules extends Component {
|
|||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
|
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
|
||||||
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
|
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
|
||||||
|
this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment()
|
||||||
|
|
||||||
this.scrollView.node.on('scrolling', this.onScrolling, this);
|
this.scrollView.node.on('scrolling', this.onScrolling, this);
|
||||||
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
|
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
|
||||||
|
|||||||
@ -2568,7 +2568,7 @@
|
|||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 1080,
|
"width": 1080,
|
||||||
"height": 2400
|
"height": 2360
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user