Skip to content

Commit

Permalink
Update for alt:V Update 14
Browse files Browse the repository at this point in the history
  • Loading branch information
DurtyFree committed Apr 13, 2023
1 parent 00c01a2 commit b5541b9
Show file tree
Hide file tree
Showing 44 changed files with 218 additions and 218 deletions.
Binary file added .vs/slnx.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/nativeui/nativeui.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ class Sprite {
const h = this.Size.Height / height;
const x = this.Pos.X / width + w * 0.5;
const y = this.Pos.Y / height + h * 0.5;
game__default.drawSprite(textureDictionary, textureName, x, y, w, h, heading, color.R, color.G, color.B, color.A, true, false);
game__default.drawSprite(textureDictionary, textureName, x, y, w, h, heading, color.R, color.G, color.B, color.A, true, 0);
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/nativeui/nativeui.min.js

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions dist/nativeui/types/NativeUi.d.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import BadgeStyle from "./enums/BadgeStyle";
import Font from "./enums/Font";
import Alignment from './enums/Alignment';
import Control from './enums/Control';
import HudColor from './enums/HudColor';
import ChangeDirection from './enums/ChangeDirection';
import UIMenuCheckboxItem from "./items/UIMenuCheckboxItem";
import UIMenuItem from "./items/UIMenuItem";
import UIMenuListItem from "./items/UIMenuListItem";
import UIMenuAutoListItem from "./items/UIMenuAutoListItem";
import UIMenuSliderItem from "./items/UIMenuSliderItem";
import ItemsCollection from "./modules/ItemsCollection";
import ListItem from "./modules/ListItem";
import ResRectangle from "./modules/ResRectangle";
import ResText from "./modules/ResText";
import Sprite from "./modules/Sprite";
import Color from "./utils/Color";
import LiteEvent from "./utils/LiteEvent";
import Point from "./utils/Point";
import Size from "./utils/Size";
import InstructionalButton from './modules/InstructionalButton';
import BigMessage from './modules/BigMessage';
import MidsizedMessage from './modules/MidsizedMessage';
import UIMenuDynamicListItem from './items/UIMenuDynamicListItem';
import BadgeStyle from "./enums/BadgeStyle.js";
import Font from "./enums/Font.js";
import Alignment from './enums/Alignment.js';
import Control from './enums/Control.js';
import HudColor from './enums/HudColor.js';
import ChangeDirection from './enums/ChangeDirection.js';
import UIMenuCheckboxItem from "./items/UIMenuCheckboxItem.js";
import UIMenuItem from "./items/UIMenuItem.js";
import UIMenuListItem from "./items/UIMenuListItem.js";
import UIMenuAutoListItem from "./items/UIMenuAutoListItem.js";
import UIMenuSliderItem from "./items/UIMenuSliderItem.js";
import ItemsCollection from "./modules/ItemsCollection.js";
import ListItem from "./modules/ListItem.js";
import ResRectangle from "./modules/ResRectangle.js";
import ResText from "./modules/ResText.js";
import Sprite from "./modules/Sprite.js";
import Color from "./utils/Color.js";
import LiteEvent from "./utils/LiteEvent.js";
import Point from "./utils/Point.js";
import Size from "./utils/Size.js";
import InstructionalButton from './modules/InstructionalButton.js';
import BigMessage from './modules/BigMessage.js';
import MidsizedMessage from './modules/MidsizedMessage.js';
import UIMenuDynamicListItem from './items/UIMenuDynamicListItem.js';
export default class NativeUI {
private _visible;
private _counterPretext;
Expand Down
8 changes: 4 additions & 4 deletions dist/nativeui/types/items/UIMenuAutoListItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BadgeStyle from "../enums/BadgeStyle";
import ResText from "../modules/ResText";
import Sprite from "../modules/Sprite";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import ResText from "../modules/ResText.js";
import Sprite from "../modules/Sprite.js";
import UIMenuItem from "./UIMenuItem.js";
export default class UIMenuAutoListItem extends UIMenuItem {
protected _itemText: ResText;
protected _arrowLeft: Sprite;
Expand Down
4 changes: 2 additions & 2 deletions dist/nativeui/types/items/UIMenuCheckboxItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BadgeStyle from "../enums/BadgeStyle";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import UIMenuItem from "./UIMenuItem.js";
export default class UIMenuCheckboxItem extends UIMenuItem {
private readonly _checkedSprite;
Checked: boolean;
Expand Down
10 changes: 5 additions & 5 deletions dist/nativeui/types/items/UIMenuDynamicListItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import BadgeStyle from "../enums/BadgeStyle";
import ChangeDirection from "../enums/ChangeDirection";
import ResText from "../modules/ResText";
import Sprite from "../modules/Sprite";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import ChangeDirection from "../enums/ChangeDirection.js";
import ResText from "../modules/ResText.js";
import Sprite from "../modules/Sprite.js";
import UIMenuItem from "./UIMenuItem.js";
interface SelectionChangeHandler {
(item: UIMenuDynamicListItem, selectedValue: string, changeDirection: ChangeDirection): string;
}
Expand Down
14 changes: 7 additions & 7 deletions dist/nativeui/types/items/UIMenuItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import BadgeStyle from "../enums/BadgeStyle";
import NativeUI from "../NativeUi";
import ResRectangle from "../modules/ResRectangle";
import ResText from "../modules/ResText";
import Sprite from "../modules/Sprite";
import Color from "../utils/Color";
import Point from "../utils/Point";
import BadgeStyle from "../enums/BadgeStyle.js";
import NativeUI from "../NativeUi.js";
import ResRectangle from "../modules/ResRectangle.js";
import ResText from "../modules/ResText.js";
import Sprite from "../modules/Sprite.js";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
export default class UIMenuItem {
readonly Id: string;
static readonly DefaultBackColor: Color;
Expand Down
12 changes: 6 additions & 6 deletions dist/nativeui/types/items/UIMenuListItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import BadgeStyle from "../enums/BadgeStyle";
import ItemsCollection from "../modules/ItemsCollection";
import ListItem from "../modules/ListItem";
import ResText from "../modules/ResText";
import Sprite from "../modules/Sprite";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import ItemsCollection from "../modules/ItemsCollection.js";
import ListItem from "../modules/ListItem.js";
import ResText from "../modules/ResText.js";
import Sprite from "../modules/Sprite.js";
import UIMenuItem from "./UIMenuItem.js";
export default class UIMenuListItem extends UIMenuItem {
ScrollingEnabled: boolean;
HoldTimeBeforeScroll: number;
Expand Down
4 changes: 2 additions & 2 deletions dist/nativeui/types/items/UIMenuSliderItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import BadgeStyle from "../enums/BadgeStyle";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import UIMenuItem from "./UIMenuItem.js";
export default class UIMenuSliderItem extends UIMenuItem {
private _arrowLeft;
private _arrowRight;
Expand Down
4 changes: 2 additions & 2 deletions dist/nativeui/types/modules/BigMessage.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import HudColor from '../enums/HudColor';
import Message from './Message';
import HudColor from '../enums/HudColor.js';
import Message from './Message.js';
export default class BigMessage extends Message {
static Initialize(scaleForm: string, transitionOutAnimName: string): void;
static ShowMissionPassedMessage(msg: string, subtitle?: string, time?: number): void;
Expand Down
8 changes: 4 additions & 4 deletions dist/nativeui/types/modules/Container.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Size from "../utils/Size";
import Rectangle from "./Rectangle";
import Point from '../utils/Point';
import Color from '../utils/Color';
import Size from "../utils/Size.js";
import Rectangle from "./Rectangle.js";
import Point from '../utils/Point.js';
import Color from '../utils/Color.js';
export default class Container extends Rectangle {
Items: any[];
constructor(pos: Point, size: Size, color: Color);
Expand Down
4 changes: 2 additions & 2 deletions dist/nativeui/types/modules/InstructionalButton.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import UIMenuItem from "../items/UIMenuItem";
import Control from '../enums/Control';
import UIMenuItem from "../items/UIMenuItem.js";
import Control from '../enums/Control.js';
export default class InstructionalButton {
Text: string;
get ItemBind(): UIMenuItem;
Expand Down
2 changes: 1 addition & 1 deletion dist/nativeui/types/modules/ItemsCollection.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ListItem from "../modules/ListItem";
import ListItem from "../modules/ListItem.js";
export default class ItemsCollection {
private items;
constructor(items: ListItem[] | string[] | number[]);
Expand Down
2 changes: 1 addition & 1 deletion dist/nativeui/types/modules/Message.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Scaleform from '../utils/Scaleform';
import Scaleform from '../utils/Scaleform.js';
export default class Message {
private static _messageVisible;
private static _transitionOutTimeout;
Expand Down
4 changes: 2 additions & 2 deletions dist/nativeui/types/modules/MidsizedMessage.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import HudColor from '../enums/HudColor';
import Message from './Message';
import HudColor from '../enums/HudColor.js';
import Message from './Message.js';
export default class MidsizedMessage extends Message {
static Initialize(scaleForm: string, transitionOutAnimName: string): void;
static ShowMidsizedMessage(title: string, message?: string, time?: number): void;
Expand Down
8 changes: 4 additions & 4 deletions dist/nativeui/types/modules/Rectangle.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Color from "../utils/Color";
import Point from "../utils/Point";
import Size from "../utils/Size";
import IElement from "./IElement";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
import IElement from "./IElement.js";
export default class Rectangle extends IElement {
Pos: Point;
Size: Size;
Expand Down
8 changes: 4 additions & 4 deletions dist/nativeui/types/modules/ResRectangle.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Point from "../utils/Point";
import Size from "../utils/Size";
import Rectangle from "./Rectangle";
import Color from '../utils/Color';
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
import Rectangle from "./Rectangle.js";
import Color from '../utils/Color.js';
export default class ResRectangle extends Rectangle {
constructor(pos: Point, size: Size, color: Color);
Draw(): void;
Expand Down
10 changes: 5 additions & 5 deletions dist/nativeui/types/modules/ResText.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Alignment from "../enums/Alignment";
import Color from "../utils/Color";
import Point from "../utils/Point";
import Size from "../utils/Size";
import Text from "./Text";
import Alignment from "../enums/Alignment.js";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
import Text from "./Text.js";
export default class ResText extends Text {
TextAlignment: Alignment;
DropShadow: boolean;
Expand Down
6 changes: 3 additions & 3 deletions dist/nativeui/types/modules/Sprite.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Color from "../utils/Color";
import Point from "../utils/Point";
import Size from "../utils/Size";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
export default class Sprite {
TextureName: string;
Pos: Point;
Expand Down
8 changes: 4 additions & 4 deletions dist/nativeui/types/modules/Text.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Color from "../utils/Color";
import Point from "../utils/Point";
import IElement from "./IElement";
import Size from '../utils/Size';
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import IElement from "./IElement.js";
import Size from '../utils/Size.js';
export default class Text extends IElement {
Caption: string;
Pos: Point;
Expand Down
6 changes: 3 additions & 3 deletions dist/nativeui/types/utils/Screen.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Font from "../enums/Font";
import Point from "./Point";
import Size from "./Size";
import Font from "../enums/Font.js";
import Point from "./Point.js";
import Size from "./Size.js";
export default class Screen {
static Width: number;
static Height: number;
Expand Down
2 changes: 1 addition & 1 deletion examples/nativeUI-example/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as alt from 'alt-client';
import * as game from 'natives';
import * as NativeUI from './includes/NativeUI/NativeUI';
import * as NativeUI from './includes/NativeUI/NativeUI.js';
const menu = new NativeUI.Menu("NativeUI Test", "Test Subtitle", new NativeUI.Point(50, 50));
menu.GetTitle().Scale = 1.5;
menu.GetTitle().DropShadow = true;
Expand Down
2 changes: 1 addition & 1 deletion examples/nativeUI-example/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as alt from 'alt-client';
import * as game from 'natives';
import * as NativeUI from './includes/NativeUI/NativeUI';
import * as NativeUI from './includes/NativeUI/NativeUI.js';

// Simple menu with default banner
const menu = new NativeUI.Menu("NativeUI Test", "Test Subtitle", new NativeUI.Point(50, 50));
Expand Down
58 changes: 29 additions & 29 deletions src/NativeUi.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import * as alt from 'alt-client';
import game from 'natives';
import BadgeStyle from "./enums/BadgeStyle";
import Font from "./enums/Font";
import Alignment from './enums/Alignment';
import Control from './enums/Control';
import HudColor from './enums/HudColor';
import ChangeDirection from './enums/ChangeDirection';
import UIMenuCheckboxItem from "./items/UIMenuCheckboxItem";
import UIMenuItem from "./items/UIMenuItem";
import UIMenuListItem from "./items/UIMenuListItem";
import UIMenuAutoListItem from "./items/UIMenuAutoListItem";
import UIMenuSliderItem from "./items/UIMenuSliderItem";
import Container from "./modules/Container";
import ItemsCollection from "./modules/ItemsCollection";
import ListItem from "./modules/ListItem";
import ResRectangle from "./modules/ResRectangle";
import ResText from "./modules/ResText";
import Sprite from "./modules/Sprite";
import Color from "./utils/Color";
import Common from "./utils/Common";
import LiteEvent from "./utils/LiteEvent";
import Point from "./utils/Point";
import Size from "./utils/Size";
import UUIDV4 from "./utils/UUIDV4";
import Screen from "./utils/Screen";
import InstructionalButton from './modules/InstructionalButton';
import Scaleform from './utils/Scaleform';
import BigMessage from './modules/BigMessage';
import MidsizedMessage from './modules/MidsizedMessage';
import UIMenuDynamicListItem from './items/UIMenuDynamicListItem';
import BadgeStyle from "./enums/BadgeStyle.js";
import Font from "./enums/Font.js";
import Alignment from './enums/Alignment.js';
import Control from './enums/Control.js';
import HudColor from './enums/HudColor.js';
import ChangeDirection from './enums/ChangeDirection.js';
import UIMenuCheckboxItem from "./items/UIMenuCheckboxItem.js";
import UIMenuItem from "./items/UIMenuItem.js";
import UIMenuListItem from "./items/UIMenuListItem.js";
import UIMenuAutoListItem from "./items/UIMenuAutoListItem.js";
import UIMenuSliderItem from "./items/UIMenuSliderItem.js";
import Container from "./modules/Container.js";
import ItemsCollection from "./modules/ItemsCollection.js";
import ListItem from "./modules/ListItem.js";
import ResRectangle from "./modules/ResRectangle.js";
import ResText from "./modules/ResText.js";
import Sprite from "./modules/Sprite.js";
import Color from "./utils/Color.js";
import Common from "./utils/Common.js";
import LiteEvent from "./utils/LiteEvent.js";
import Point from "./utils/Point.js";
import Size from "./utils/Size.js";
import UUIDV4 from "./utils/UUIDV4.js";
import Screen from "./utils/Screen.js";
import InstructionalButton from './modules/InstructionalButton.js';
import Scaleform from './utils/Scaleform.js';
import BigMessage from './modules/BigMessage.js';
import MidsizedMessage from './modules/MidsizedMessage.js';
import UIMenuDynamicListItem from './items/UIMenuDynamicListItem.js';

let menuPool: NativeUI[] = [];

Expand Down
22 changes: 11 additions & 11 deletions src/items/UIMenuAutoListItem.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import BadgeStyle from "../enums/BadgeStyle";
import Font from "../enums/Font";
import Alignment from "../enums/Alignment";
import ResText from "../modules/ResText";
import Sprite from "../modules/Sprite";
import Color from "../utils/Color";
import Point from "../utils/Point";
import Size from "../utils/Size";
import Screen from "../utils/Screen";
import UIMenuItem from "./UIMenuItem";
import { fixFloat } from "../utils/Number";
import BadgeStyle from "../enums/BadgeStyle.js";
import Font from "../enums/Font.js";
import Alignment from "../enums/Alignment.js";
import ResText from "../modules/ResText.js";
import Sprite from "../modules/Sprite.js";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
import Screen from "../utils/Screen.js";
import UIMenuItem from "./UIMenuItem.js";
import { fixFloat } from "../utils/Number.js";

export default class UIMenuAutoListItem extends UIMenuItem {
protected _itemText: ResText;
Expand Down
12 changes: 6 additions & 6 deletions src/items/UIMenuCheckboxItem.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import BadgeStyle from "../enums/BadgeStyle";
import Sprite from "../modules/Sprite";
import Color from "../utils/Color";
import Point from "../utils/Point";
import Size from "../utils/Size";
import UIMenuItem from "./UIMenuItem";
import BadgeStyle from "../enums/BadgeStyle.js";
import Sprite from "../modules/Sprite.js";
import Color from "../utils/Color.js";
import Point from "../utils/Point.js";
import Size from "../utils/Size.js";
import UIMenuItem from "./UIMenuItem.js";

export default class UIMenuCheckboxItem extends UIMenuItem {
private readonly _checkedSprite: Sprite;
Expand Down
Loading

0 comments on commit b5541b9

Please sign in to comment.