Files
nunuhara_xsystem4/src/hll/GoatGUIEngine.c
T
Nunuhara Cabbage 5b2f9d7536 Refactor GoatGUIEngine and add misc. stubs
Refactor GoatGUIEngine into various files under src/parts/.
The external interface to this code is the functions prefixed with PE_
and generally following the naming of the HLL functions which they
implement.

The reason for this is that there are multiple HLL libraries that
implement more or less the same GUI interface (GoatGUIEngine, GUIEngine
and PartsEngine).

Also added here are a number of miscellaneous stubbed-out HLL functions
that are used by Rance 01 (which now runs up to the point where it tries
to create the title menu).
2022-01-30 10:12:20 -08:00

112 lines
5.8 KiB
C

/* Copyright (C) 2019 Nunuhara Cabbage <nunuhara@haniwa.technology>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://gnu.org/licenses/>.
*/
#include "parts.h"
#include "hll.h"
HLL_LIBRARY(GoatGUIEngine,
HLL_EXPORT(Init, PE_Init),
HLL_EXPORT(Update, PE_Update),
HLL_EXPORT(SetPartsCG, PE_SetPartsCG_by_index),
HLL_EXPORT(GetPartsCGNumber, PE_GetPartsCGNumber),
HLL_EXPORT(SetLoopCG, PE_SetLoopCG),
HLL_EXPORT(SetText, PE_SetText),
HLL_EXPORT(AddPartsText, PE_AddPartsText),
HLL_TODO_EXPORT(DeletePartsTopTextLine, PE_DeletePartsTopTextLine),
HLL_EXPORT(SetFont, PE_SetFont),
HLL_EXPORT(SetPartsFontType, PE_SetPartsFontType),
HLL_EXPORT(SetPartsFontSize, PE_SetPartsFontSize),
HLL_EXPORT(SetPartsFontColor, PE_SetPartsFontColor),
HLL_EXPORT(SetPartsFontBoldWeight, PE_SetPartsFontBoldWeight),
HLL_EXPORT(SetPartsFontEdgeColor, PE_SetPartsFontEdgeColor),
HLL_EXPORT(SetPartsFontEdgeWeight, PE_SetPartsFontEdgeWeight),
HLL_EXPORT(SetTextCharSpace, PE_SetTextCharSpace),
HLL_EXPORT(SetTextLineSpace, PE_SetTextLineSpace),
HLL_EXPORT(SetHGaugeCG, PE_SetHGaugeCG),
HLL_EXPORT(SetHGaugeRate, PE_SetHGaugeRate),
HLL_EXPORT(SetVGaugeCG, PE_SetVGaugeCG),
HLL_EXPORT(SetVGaugeRate, PE_SetVGaugeRate),
HLL_EXPORT(SetNumeralCG, PE_SetNumeralCG),
HLL_EXPORT(SetNumeralLinkedCGNumberWidthWidthList, PE_SetNumeralLinkedCGNumberWidthWidthList),
HLL_EXPORT(SetNumeralNumber, PE_SetNumeralNumber),
HLL_EXPORT(SetNumeralShowComma, PE_SetNumeralShowComma),
HLL_EXPORT(SetNumeralSpace, PE_SetNumeralSpace),
HLL_TODO_EXPORT(SetPartsRectangleDetectionSize, PE_SetPartsRectangleDetectionSize),
HLL_TODO_EXPORT(SetPartsFlash, PE_SetPartsFlash),
HLL_TODO_EXPORT(IsPartsFlashEnd, PE_IsPartsFlashEnd),
HLL_TODO_EXPORT(GetPartsFlashCurrentFrameNumber, PE_GetPartsFlashCurrentFrameNumber),
HLL_TODO_EXPORT(BackPartsFlashBeginFrame, PE_BackPartsFlashBeginFrame),
HLL_TODO_EXPORT(StepPartsFlashFinalFrame, PE_StepPartsFlashFinalFrame),
HLL_EXPORT(ReleaseParts, PE_ReleaseParts),
HLL_EXPORT(ReleaseAllParts, PE_ReleaseAllParts),
HLL_EXPORT(ReleaseAllPartsWithoutSystem, PE_ReleaseAllPartsWithoutSystem),
HLL_EXPORT(SetPos, PE_SetPos),
HLL_EXPORT(SetZ, PE_SetZ),
HLL_EXPORT(SetShow, PE_SetShow),
HLL_EXPORT(SetAlpha, PE_SetAlpha),
HLL_TODO_EXPORT(SetPartsDrawFilter, PE_SetPartsDrawFilter),
HLL_EXPORT(SetClickable, PE_SetClickable),
HLL_EXPORT(GetPartsX, PE_GetPartsX),
HLL_EXPORT(GetPartsY, PE_GetPartsY),
HLL_EXPORT(GetPartsZ, PE_GetPartsZ),
HLL_EXPORT(GetPartsShow, PE_GetPartsShow),
HLL_EXPORT(GetPartsAlpha, PE_GetPartsAlpha),
HLL_EXPORT(GetPartsClickable, PE_GetPartsClickable),
HLL_EXPORT(SetPartsOriginPosMode, PE_SetPartsOriginPosMode),
HLL_EXPORT(GetPartsOriginPosMode, PE_GetPartsOriginPosMode),
HLL_EXPORT(SetParentPartsNumber, PE_SetParentPartsNumber),
HLL_EXPORT(SetPartsGroupNumber, PE_SetPartsGroupNumber),
HLL_EXPORT(SetPartsGroupDecideOnCursor, PE_SetPartsGroupDecideOnCursor),
HLL_EXPORT(SetPartsGroupDecideClick, PE_SetPartsGroupDecideClick),
HLL_EXPORT(SetOnCursorShowLinkPartsNumber, PE_SetOnCursorShowLinkPartsNumber),
HLL_EXPORT(SetPartsMessageWindowShowLink, PE_SetPartsMessageWindowShowLink),
HLL_TODO_EXPORT(GetPartsMessageWindowShowLink, PE_GetPartsMessageWindowShowLink),
HLL_EXPORT(SetPartsOnCursorSoundNumber, PE_SetPartsOnCursorSoundNumber),
HLL_EXPORT(SetPartsClickSoundNumber, PE_SetPartsClickSoundNumber),
HLL_EXPORT(SetClickMissSoundNumber, PE_SetClickMissSoundNumber),
HLL_EXPORT(BeginClick, PE_BeginInput),
HLL_EXPORT(EndClick, PE_EndInput),
HLL_EXPORT(GetClickPartsNumber, PE_GetClickPartsNumber),
HLL_EXPORT(AddMotionPos, PE_AddMotionPos),
HLL_EXPORT(AddMotionAlpha, PE_AddMotionAlpha),
HLL_EXPORT(AddMotionCG, PE_AddMotionCG),
HLL_EXPORT(AddMotionHGaugeRate, PE_AddMotionHGaugeRate),
HLL_EXPORT(AddMotionVGaugeRate, PE_AddMotionVGaugeRate),
HLL_EXPORT(AddMotionNumeralNumber, PE_AddMotionNumeralNumber),
HLL_EXPORT(AddMotionMagX, PE_AddMotionMagX),
HLL_EXPORT(AddMotionMagY, PE_AddMotionMagY),
HLL_EXPORT(AddMotionRotateX, PE_AddMotionRotateX),
HLL_EXPORT(AddMotionRotateY, PE_AddMotionRotateY),
HLL_EXPORT(AddMotionRotateZ, PE_AddMotionRotateZ),
HLL_EXPORT(AddMotionVibrationSize, PE_AddMotionVibrationSize),
HLL_EXPORT(AddMotionSound, PE_AddMotionSound),
HLL_EXPORT(BeginMotion, PE_BeginMotion),
HLL_EXPORT(EndMotion, PE_EndMotion),
HLL_EXPORT(SetMotionTime, PE_SetMotionTime),
HLL_EXPORT(IsMotion, PE_IsMotion),
HLL_EXPORT(GetMotionEndTime, PE_GetMotionEndTime),
HLL_EXPORT(SetPartsMagX, PE_SetPartsMagX),
HLL_EXPORT(SetPartsMagY, PE_SetPartsMagY),
HLL_TODO_EXPORT(SetPartsRotateX, PE_SetPartsRotateX),
HLL_TODO_EXPORT(SetPartsRotateY, PE_SetPartsRotateY),
HLL_EXPORT(SetPartsRotateZ, PE_SetPartsRotateZ),
HLL_TODO_EXPORT(SetPartsAlphaClipperPartsNumber, PE_SetPartsAlphaClipperPartsNumber),
HLL_TODO_EXPORT(SetPartsPixelDecide, PE_SetPartsPixelDecide),
HLL_TODO_EXPORT(SetThumbnailReductionSize, PE_SetThumbnailReductionSize),
HLL_TODO_EXPORT(SetThumbnailMode, PE_SetThumbnailMode),
HLL_EXPORT(Save, PE_Save),
HLL_EXPORT(Load, PE_Load));