-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding main menu window to configure extensions load order.
- Loading branch information
Showing
21 changed files
with
528 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/engine/core/ui/menu/extensions/ExtensionItemListEntry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
CUIListBoxItem, | ||
CUITextWnd, | ||
GetARGB, | ||
GetFontLetterica16Russian, | ||
GetFontLetterica18Russian, | ||
LuabindClass, | ||
} from "xray16"; | ||
|
||
import { TIndex, TName } from "@/engine/lib/types"; | ||
|
||
/** | ||
* List entry of extensions options menu. | ||
* Describes extension name and load order. | ||
*/ | ||
@LuabindClass() | ||
export class ExtensionItemListEntry extends CUIListBoxItem { | ||
public uiInnerNameText: CUITextWnd; | ||
public uiInnerSectionText: CUITextWnd; | ||
|
||
public constructor(height: number, width: number, index: TIndex, name: TName) { | ||
super(height); | ||
|
||
this.SetTextColor(GetARGB(255, 170, 170, 170)); | ||
|
||
this.uiInnerNameText = this.GetTextItem(); | ||
this.uiInnerNameText.SetFont(GetFontLetterica18Russian()); | ||
this.uiInnerNameText.SetEllipsis(true); | ||
this.uiInnerNameText.SetText(name); | ||
|
||
this.uiInnerSectionText = this.AddTextField(tostring(index), width); | ||
this.uiInnerSectionText.SetFont(GetFontLetterica16Russian()); | ||
} | ||
} |
Oops, something went wrong.