import { Vector2 } from '../types/Vector2'; import { Vector3 } from '../types/Vector3'; import { Vector4 } from '../types/Vector4'; import { Color } from '../types/Color'; import { createFromHandle } from '../types/HandleRegistry'; import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f, int, uint, float, Hash, u8, u16, u32, u64, i8, i16, i32, i64 } from '../types/NativeAliases'; export class Uistickyfeed { /** * Returns state of sticky feed message, see 0x59FA676177DBE4C9 * * @param msgId * @returns */ static uiStickyFeedGetMessageState(msgId: int): int { return inv('0x07954320D77F6A3D', msgId, rai()); } /** * Example: https://pastebin.com/EJD7ytnz * * @param p2 * @returns p0; p1 */ static uiStickyFeedCreateErrorMessage(p2: boolean): [int, number, number] { const result = inv<[number, number, number]>('0x9F2CC2439A04E7BA', pvi(), pvi(), p2, rai()); return [result[0], result[1], result[2]]; } /** * Example: https://pastebin.com/6mLtee2S * * @param p2 * @returns p0; p1 */ static uiStickyFeedCreateWarningMessage(p2: boolean): [int, number, number] { const result = inv<[number, number, number]>('0x339E16B41780FC35', pvi(), pvi(), p2, rai()); return [result[0], result[1], result[2]]; } /** * Example: https://pastebin.com/JygJShNU * * @param p2 * @returns p0; p1 */ static uiStickyFeedCreateDeathFailMessage(p2: boolean): [int, number, number] { const result = inv<[number, number, number]>('0x815C4065AE6E6071', pvi(), pvi(), p2, rai()); return [result[0], result[1], result[2]]; } /** * @returns */ static uiStickyFeedIsAlertScreenActive(): any { return inv('0xF8806EC3FF840FDC'); } /** * @param msgId */ static uiStickyFeedClearMessage(msgId: int): void { inv('0x00A15B94CBA4F76F', msgId); } /** * stickyFeedChannel: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eUIStickyFeedChannel * * @param stickyFeedChannel * @returns */ static uiStickyFeedIsChannelActive(stickyFeedChannel: int): any { return inv('0xC5C395C60B542A3C', stickyFeedChannel); } /** * Seems to only update _UI_STICKY_FEED_CREATE_ERROR_MESSAGE(0x9F2CC2439A04E7BA) and _UI_STICKY_FEED_CREATE_DEATH_FAIL_MESSAGE(0x815C4065AE6E6071) message. * Example: https://pastebin.com/nDrJyWq2 * * @param msgId * @param p2 * @returns p1 */ static uiStickyFeedUpdateMessage(msgId: int, p2: boolean): number { const result = inv('0xBC6F454E310124DA', msgId, pvi(), p2); return result; } }