大约有 65 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0025 秒)
...r; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; private const BUTTON_WIDTH:int = 147; private const BUTTON_HEIGHT:int = 165 / 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private var xOffset:int; private var yOffset:int;...
来源: Laya_示例 发布时间: 20241124
...port laya.webgl.WebGL; public class UI_CheckBox { private const COL_AMOUNT:int = 2; private const ROW_AMOUNT:int = 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private const X_OFFSET:int = 100; private const Y_OFFSET:int = 50; private var skins:Array; publ...
来源: Laya_示例 发布时间: 20241124
....webgl.WebGL; public class PerformanceTest_Cartoon { private var colAmount:int = 100; private var extraSpace:int = 50; private var moveSpeed:int = 2; private var rotateSpeed:int = 2; private var characterGroup:Array; public function PerformanceTest_Cartoon() { // 不支持WebGL时自动切换至Canv...
来源: Laya_示例 发布时间: 20241124
...ionInfo = Laya.AccelerationInfo; var Accelerator = Laya.Accelerator; var Point = Laya.Point; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2...
来源: Laya_示例 发布时间: 20241124
...er; import laya.webgl.WebGL; public class UI_Input { private const SPACING:int = 100; private const INPUT_WIDTH:int = 300; private const INPUT_HEIGHT:int = 50; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_Input() { // 不支持WebGL时自动切换至Canvas Laya.init(8...
来源: Laya_示例 发布时间: 20241124
...rowser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 private TrackLength: number = 200; //触发swipe的拖动距离 private TOGGLE_DIST: number = this.TrackLength / 2; private buttonPosition: number; private beginPosition: number; privat...
来源: Laya_示例 发布时间: 20241124
...mport laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV...
来源: Laya_示例 发布时间: 20241124
...// 设置数据项为对应图片的路径 var data:Array = []; for (var i:int = 0; i < 10; ++i) { data.push("../../../../res/ui/listskins/1.jpg"); data.push("../../../../res/ui/listskins/2.jpg"); data.push("../../../../res/ui/listskins/3.jpg"); data.push("../../../../res/ui/listskins/4.jpg"); data....
来源: Laya_示例 发布时间: 20241124
...; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:String = "LayaBox"; for (var i:int = 0, len:int = demoString.length; i < len; ++i) { var letterText:Text = createLetter(demoString.charAt(i)); letterText.x = w / len * i + offs...
来源: Laya_示例 发布时间: 20241124
...port laya.webgl.WebGL; public class UI_Dialog { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function UI_Dialog() { // 不支持WebGL时自动切换至Can...
来源: Laya_示例 发布时间: 20241124