Skip to content

Commit

Permalink
[LeGo] Social Cards
Browse files Browse the repository at this point in the history
Fix: YouTube video playback in C_MENU_ITEM
Spelling fixes in C_MENU_ITEM article
  • Loading branch information
muczc1wek committed Feb 9, 2024
1 parent 13384cf commit f06b3de
Show file tree
Hide file tree
Showing 26 changed files with 95 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/zengin/scripts/classes/c_menuitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Constants are described in the file [`Scripts/System/_intern/Menu.d`](https://gi
CONST INT SEL_ACTION_UNDEF = 0; // No action. Used when setting game parameters, calling functions...
CONST INT SEL_ACTION_BACK = 1; // Return to the previous menu or game
CONST INT SEL_ACTION_STARTMENU = 2; // Open a menu
CONST INT SEL_ACTION_STARTITEM = 3; // Special commanf for save slots
CONST INT SEL_ACTION_STARTITEM = 3; // Special command for save slots
CONST INT SEL_ACTION_CLOSE = 4; // Close menu or game
CONST INT SEL_ACTION_CONCOMMANDS = 5; // Execute console command
CONST INT SEL_ACTION_PLAY_SOUND = 6; // Play sound from C_SFX instance
Expand Down Expand Up @@ -541,18 +541,18 @@ Constants for all flags are described in the file [`Scripts/System/_intern/Menu.
```dae
const int IT_CHROMAKEYED = 1;
const int IT_TRANSPARENT = 2;
const int IT_SELECTABLE = 4; // Elment can be selected
const int IT_SELECTABLE = 4; // Element can be selected
const int IT_MOVEABLE = 8;
const int IT_TXT_CENTER = 16; // Align text to center
const int IT_DISABLED = 32; // Inteactive item
const int IT_DISABLED = 32; // Interactive item
const int IT_FADE = 64;
const int IT_EFFECTS_NEXT = 128; // Flag for influencing an adjacent menu item
const int IT_ONLY_OUT_GAME = 256; // Element available only outside the game
const int IT_ONLY_IN_GAME = 512; // Element available only in-game
const int IT_PERF_OPTION = 1 << 10; // Option responsible for performance
const int IT_MULTILINE = 1 << 11; // Multiline text element
const int IT_MULTILINE = 1 << 11; // Multi-line text element
const int IT_NEEDS_APPLY = 1 << 12; // Need to apply a settings. Used when changing screen resolution
const int IT_NEEDS_RESTART = 1 << 13; // The game need to be resterted
const int IT_NEEDS_RESTART = 1 << 13; // The game need to be restarted
const int IT_EXTENDED_MENU = 1 << 14; // Advanced menu flag
```

Expand All @@ -571,9 +571,9 @@ const int IT_EXTENDED_MENU = 1 << 14; // Advanced menu flag
??? Example "Intended use"
In early engine versions, the initial position of the element could be specified using the `startPosX` and `startPosY` properties. The element moved from these coordinates to the desired position.

At the begining of the video below, it can be seen that the elements slides into the screen. That was probably done using this flag and mentionsed parameters.
At the beginning of the video below, it can be seen that the elements slides into the screen. That was probably done using this flag and mentioned parameters.

![type:video](https://www.youtube.com/watch?v=mfJag6fkfH8)
![type:video](https://www.youtube.com/embed/mfJag6fkfH8)

- `IT_TXT_CENTER`
Aligns the text in the element to the center.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/bars.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Bars
description: LeGo package for creating new status bars
---
# Bars
This package makes it very easy to add new bars, for e.g. stamina.

Expand Down
1 change: 1 addition & 0 deletions docs/zengin/scripts/extenders/lego/applications/bars.pl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Bars
description: Pakiet LeGo do tworzenia nowych pasków statusu
---
# Bars - paski
Ten pakiet bardzo ułatwia dodawanie nowych pasków, dla wyświetlania np. wytrzymałości.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/buffs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Buffs
description: LeGo package allowing to create status effects and apply them on NPCs
---
# Buffs
This package allows you to easily create status effects that can affect any NPC.
Status effects on the hero are displayed graphically in a bar.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/buttons.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Buttons
description: LeGo package for creating buttons that reacts to mouse
---
# Buttons
This package extends the handling of the mouse and allows creating rectangular buttons, which react to mouse (hover) entry and exit as well as a mouse click.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Console Commands
description: LeGo package allowing the registering of new console commands
---
# Console Commands
This package allows you to create new console commands.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Console Commands
description: Pakiet LeGo umożliwiający rejestrację nowych poleceń konsoli
---
# Console Commands - polecenia konsoli
Ten Pakiet pozwala na tworzenie nowych poleceń konsoli dostępnej po naciśnięciu klawisza F2 w trybie marvin.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/cursor.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Cursor
description: LeGo package implementing in-game mouse cursor support
---
# Cursor
This package implements Gothic in-game mouse cursor support. To visually display the cursor there is a `Cursor.tga` file in the resources, but the texture can be changed in [user constants](../various/userconstants.md#cursor-1).

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/focusnames.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Focusnames
description: LeGo package that change NPCs/Object's focus name color based on its attitude
---
# Focusnames
This package colors the focus names of the NPCs in appropriate colors according to the behavior defined below (alpha values are taken into account). Also affects monsters. (Mobs/Items get Color_Neutral)

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/names.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Names
description: LeGo package for changing NPCs display name during the game
---
# Names
Allows the user to change NPC name e.g. after he shows up.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/render.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Render
description: LeGo package for rendering items on a screen
---
# Render
With this package items can be rendered on the screen. Since items are rendered independently of the normal views, textures that are 'below' the items must also be managed by this package, this behaviour is managed by the priority system. The view with the highest priority is always rendered first, so it is at the bottom. In theory, any .3DS model can be rendered if you just create a suitable item script.
## Dependencies
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/applications/saves.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Saves
description: LeGo package offering open data stream to the game save file
---
# Saves
Offers an open file stream that can read/write variables on save/load. It is used by [PermMem](../tools/permmem.md), so you don't need to address it manually anymore.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/hook_engine.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: HookEngine
description: LeGo package for hooking engine functions
---
# HookEngine
This package allows you to hook anywhere in an engine function to run your own Daedalus code.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/int64.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Int64
description: LeGo package implementing 64 bit integer support
---
# Int64
Int64 implements basic arithmetic for 64-bit integers based on machine code (hence the function signatures are also in machine code style). Furthermore, Int64 offers the constructor `int64@` for Int64 objects, but mk64 expects a pointer, not a handle.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/item_helper.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: ItemHelper
description: LeGo package that makes changing `C_ITEM` instance to `oCItem` pointer possible
---
# ItemHelper
This package is very simple - it retrieves a `oCItem` pointer from an `C_ITEM` instance valid for the current world and session.

Expand Down
1 change: 1 addition & 0 deletions docs/zengin/scripts/extenders/lego/tools/item_helper.pl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: ItemHelper
description: Pakiet LeGo umożliwiający zmianę instancji `C_ITEM` na pointer `oCItem`
---
# ItemHelper - pomocnik do przedmiotów
Ten pakiet jest bardzo prosty - pobiera wskaźnik `oCItem` z instancji `C_ITEM` ważnej dla bieżącego świata i sesji.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/list.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: List
description: LeGo package implementing `zCList` and `zCListSort` data types handling
---
# List
The List package is a collection of functions designed to simplify the handling of `zCList` and `zCListSort` lists in daedalus. It offers a range of functions for creating, manipulating, and querying lists.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/locals.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Locals
description: LeGo package adding true local variables and final clause
---
# Locals
Daedalus doesn't offer any local variables, which can quickly lead to problems with recursive functions. The Locals package allows variables to be saved temporarily on a pseudo-stack.
Locals is a very specific package. People who work normally with Daedalus will probably never need it.
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/permmem.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: PermMem
description: LeGo package implementing automatic instances saving and loading
---
# PermMem
PermMem is a powerful package that allows classes (or instances) to be used permanently even after loading or restarting by saving them to the ASCII `.ZEN` archive in the savegame directory. PermMem manages handles that are used to access instances, and provides various functions to manipulate these handles and instances.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/queue.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Queue
description: LeGo package implementing queue data structure
---
# Queue
This package is an implementation of the Queue data structure and a queue for function calls.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/random.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Random
description: LeGo package providing a better alternative for a `Hlp_Random()` function
---
# Random
Provides more random randomization than `Hlp_Random()` function.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/talents.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Talents
description: LeGo package providing an extension for AIVar array
---
# Talents
The Talents package does two things:

Expand Down
1 change: 1 addition & 0 deletions docs/zengin/scripts/extenders/lego/tools/talents.pl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Talents
description: Pakiet LeGo zapewniający rozszerzenie dla tablicy AIVar
---
# Talents - talenty
Ten pakiet robi dwie rzeczy:
Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/timer.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Timer
description: LeGo package for better game timer handling
---
# Timer
Timer is a better alternative to the timers that Gothic offers. The [FrameFunctions](frame_functions.md) and [Anim8](../applications/anim8.md) packages are already based on it. It isn't possible to modify the current time, as this would only cause difficulties.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/tools/view.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: View
description: LeGo package for `zCView` handling in daedalus
---
# View
This package can create textures on the screen and work with them in an extended manner.

Expand Down
4 changes: 4 additions & 0 deletions docs/zengin/scripts/extenders/lego/various/userconstants.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: User constants
description: LeGo package user-configurable constants description
---
# User constants
All constants that the user can either use or even change freely are defined in [Userconst.d](https://github.com/Lehona/LeGo/blob/dev/Userconst.d) file.

Expand Down

0 comments on commit f06b3de

Please sign in to comment.