Removed old scripted types
This commit is contained in:
Vendored
-39
@@ -1,39 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/** A full-screen color overlay. */
|
||||
interface UIFullboxInstance {
|
||||
/**
|
||||
* Sets the overlay to a solid color with no animation.
|
||||
* Returns a Promise that resolves immediately.
|
||||
* @param color - The color to apply.
|
||||
*/
|
||||
setColor(color: Color): Promise<void>;
|
||||
|
||||
/**
|
||||
* Animates the overlay from one color to another.
|
||||
* Returns a Promise that resolves when the transition completes.
|
||||
* Starting a new transition while one is in progress resolves the
|
||||
* old Promise immediately before beginning the new one.
|
||||
* @param from - Starting color.
|
||||
* @param to - Ending color.
|
||||
* @param duration - Duration in seconds.
|
||||
* @param easing - Optional EASING_* constant (default: EASING_LINEAR).
|
||||
*/
|
||||
transition(
|
||||
from: Color,
|
||||
to: Color,
|
||||
duration: number,
|
||||
easing?: number
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
/** Full-screen overlay drawn on top of all UI elements. */
|
||||
declare var UIFullboxOver: UIFullboxInstance;
|
||||
|
||||
/** Full-screen overlay drawn below all UI elements. */
|
||||
declare var UIFullboxUnder: UIFullboxInstance;
|
||||
Vendored
-50
@@ -1,50 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/** VN-style typewriter textbox singleton. */
|
||||
interface UITextboxNamespace {
|
||||
/** `true` when the typewriter has fully revealed the current page. */
|
||||
readonly isPageComplete: boolean;
|
||||
/** `true` when at least one more page follows the current one. */
|
||||
readonly hasNextPage: boolean;
|
||||
/** Zero-based index of the current page. */
|
||||
readonly currentPage: number;
|
||||
/** Total number of pages for the current text. */
|
||||
readonly pageCount: number;
|
||||
|
||||
/**
|
||||
* Sets the textbox content and rebuilds the word-wrap layout.
|
||||
* Resets to page 0 and scroll 0.
|
||||
* @param text - Text to display (max 1024 chars).
|
||||
*/
|
||||
setText(text: string): void;
|
||||
|
||||
/**
|
||||
* Advances to the next page; no-op on the last page.
|
||||
*/
|
||||
nextPage(): void;
|
||||
|
||||
/**
|
||||
* Advances the typewriter scroll by one tick.
|
||||
* Call once per frame before `draw()`.
|
||||
*/
|
||||
update(): void;
|
||||
|
||||
/**
|
||||
* Draws the frame and currently visible text.
|
||||
* Call once per frame after `update()`.
|
||||
*/
|
||||
draw(): void;
|
||||
|
||||
/**
|
||||
* Sets the input action that auto-advances the textbox when held.
|
||||
* @param action - An `INPUT_ACTION_*` constant.
|
||||
*/
|
||||
setAdvanceAction(action: InputAction): void;
|
||||
}
|
||||
|
||||
declare var UITextbox: UITextboxNamespace;
|
||||
Reference in New Issue
Block a user