add message popup

This commit is contained in:
Vick Scarlet
2021-12-01 16:07:03 +08:00
parent eb02d1ee6f
commit f0317eaf14
13 changed files with 141 additions and 6 deletions
+3 -2
View File
@@ -57,8 +57,9 @@ export default class CyberProperty extends ui.view.CyberTheme.CyberPropertyUI {
}
next() {
if (this.total < this.#propertyPoints) {
return;
const left = this.#propertyPoints - this.total;
if (left > 0) {
return $$event('message', ['F_PropertyPointLeft', left]);
}
$ui.switchView(
UI.pages.TRAJECTORY,