My modern widgets!

Related tags

Imperador-Widgets
Overview

Imperador-Widgets

My modern widgets!

IM NOT ENGLISH, MY ENGLISH MAY BE NOT GOOD!!

For you implement in your game/client/project, remember, the code use OpenGL, the scissor! You can replace the all render methods on the code with your own classes!

I use my own system font, I use the hal font renderer! You can look in TurokFramework!

Configuration

final ImperadorEntryBox entry = new ImperadorEntryBox(new TurokFont(new Font(...)), "default_text");

entry.scissor(); // For you sync automatically the space.
// Or you can edit the scissor!
entry.getScissor(); // Its a TurokRect class!
// The scissor works for label, button & entry.

// For you set the size of entry/label/button!
entry.getRect();

// The label/button have center, left & right methods;
label.center();
label.left(int offset);
label.right(int offset);
// Or edit.
label.setOffsetX(int v);

// You can modify the string offset Y!
label.setOffsetY(int v);

// The entry box have a Save entry!
final String typing = entry.getText(); // The current typed!
final String last = entry.getSave(); // The last text before unfocus!

Events

final TurokMouse mouse = new TurokMouse(mousePositionX, mousePositionY);

// For entry box, you always need update the scroll!
entry.doMouseScroll(mouse);

// For you sync the mouse over of entry/button;
button.doMouseOver(mouse);

// The event click for button & entry is the mouseClicked(int mx, int my, int button) (Minecraft GUI);
button.onMouseClicked(button);
entry.onMouseClicked(button);
// Remember do onMouseReleased in mouseReleased (Minecraft GUI);
entry.doSetIndexAB(button); // For sync the entry box selections.

// For entry box keytyped, the keyTyped method in (Minecraft GUI);
entry.onKeyboardPressed(char character, int key);

Sorry

I dont want to make a library or a big thing, I want only share my works and help who is starting!

Issues
Owner
Wks JanStudio
A good programmer!
Wks JanStudio
BootstrapFX: Bootstrap for JavaFX

BootstrapFX BootstrapFX is a partial port of Twitter Bootstrap for JavaFX. It mainly provides a CSS stylesheet that closely resembles the original whi

Kordamp 666 Sep 8, 2021
:ocean: Implicit animations for JavaFX

animated animated introduces implicit animations, a completely new concept in JavaFX strongly inspired by Flutter's animations and motion widgets. Ind

Giorgio Garofalo 37 Aug 24, 2021
Allow runtime modification of JavaFX CSS

cssfx ⚠ WARNING ⚠ In version 11.3.0 we have relocated & refactored the project. maven groupId has been changed to fr.brouillard.oss java module name h

Matthieu Brouillard 106 Aug 24, 2021
This repository contains all java related sources of the Dolphin Platform.

Dolphin Platform This repository contains all Java related sources of the Dolphin Platform. Clients for other languages can be found in seperate repos

IMTF 73 Jun 27, 2021