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

View File

@@ -57,8 +57,9 @@ export default class Property extends ui.view.DefaultTheme.PropertyUI {
}
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,