大约有 148 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0074 秒)
...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var comboBox:ComboBox = new ComboBox("resource/ui/button.png", "item0,item1,item2,item3,item4,item5");//创建...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPicker = new ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 co...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load(["resource/ui/radio.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var radioGroup:RadioGroup = new RadioGroup();//创建一个 RadioGroup 类的实例对象 radioGroup 。 radioGroup.pos(100, 100);//设置 ra...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();//创建一个 Tab 类的实例对象 tab 。 tab.skin = "resource/ui/tab.png";//设置 tab 的皮肤。 tab.labels = "...
来源: Laya3.0_api 发布时间: 20231115
...定影响。 closeEffectHandler closeEffectHandler: Handler = new Handler(this, this.closeEffect) Defined in laya/ui/DialogManager.ts:48 全局默认弹出对话框效果,可以设置一个效果代替默认的弹出效果,如果不想有任何效果,可以赋值为null hitTestPrior hitTestPri...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete)); } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 实例对象 button ,传入它的皮肤sk...
来源: Laya3.0_api 发布时间: 20231115
... number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } //如果没有 Setter,则 weight 为只读属性 set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 serializable 通过装饰器定义为组件属性后,默认状态下,属...
来源: Laya3.0_文档 发布时间: 20251010
...元数 Returns void set set(x: number, y: number, z: number, w: number): this Defined in laya/maths/Quaternion.ts:297 设置四元数的值。 Parameters x: number X值。 y: number Y值。 z: number Z值。 w: number Returns this 返回四元数 setValue setValue(x: number, y: number, z: number, w:...
来源: Laya3.0_api 发布时间: 20231115
... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...
来源: Laya3.0_api 发布时间: 20231115
... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...
来源: Laya3.0_api 发布时间: 20231115