feat: integrate login flow, lobby UI and bitmap font resources

This commit is contained in:
2026-09-06 13:46:57 +08:00
parent e1bcfd91ec
commit 842c68ef55
141 changed files with 11279 additions and 1717 deletions
@@ -20,6 +20,7 @@ test('login busy state starts Animation once, hides on completion and restarts o
const group = {active:false, paths:children};
let playing = false, starts = 0, stops = 0;
const panel = Object.create(exports.LoginPanel.prototype);
panel.modal = null;
panel.root = {paths:{'group-2/Logining':group}};
panel.loadingAnimation = {defaultClip:{name:'LoginLoading'}, getState:()=>({isPlaying:playing}),
play(name: string){assert.equal(name,'LoginLoading');playing=true;starts++;}, stop(){playing=false;stops++;}};
@@ -29,4 +30,8 @@ test('login busy state starts Animation once, hides on completion and restarts o
panel.setBusy(false);
assert.equal(stops,1); assert.equal(group.active,false); assert.equal(playing,false);
panel.setBusy(true); assert.equal(starts,2);
panel.modal = {name:'Layer29_PhoneInfo'};
panel.setBusy(true);
assert.equal(starts,2);assert.equal(group.active,false);assert.equal(playing,false);
assert.ok(Object.values(children).every(node=>!node.active));
});