#SevenCommons - Modding Framework#
SevenCommons is a Framework for easier creation of Mods based on the Minecraft Forge Modding API for Minecraft. It is currently in pre-alpha and not yet open to use.
This library is licensed under the LGPL v3.
License: GNU Lesser General Public License v3.0
#SevenCommons - Modding Framework#
SevenCommons is a Framework for easier creation of Mods based on the Minecraft Forge Modding API for Minecraft. It is currently in pre-alpha and not yet open to use.
This library is licensed under the LGPL v3.
Hey there! I was writing scrolling pane for myself and stuck onto your code while searching for minecraft forge
and glScissor
.
So instead of figuring out the scale of the screen, you can determine first the ratios:
int rx = this.mc.displayWidth / this.width;
int ry = this.mc.displayHeight / this.height;
And then multiply your rect's x, y, width and height by those ratios:
int w = 200;
int h = 200;
int x = width/2 - w;
int y = 80;
GL11.glScissor(x * rx, this.mc.displayHeight - (y + h) * ry, w * rx, h * ry);
That is another simpler (and better) way to glScissor in minecraft's GUI.
P.S.: Maybe you're already figured out (since this topic is over two years old), but I'm gonna do it anyway, since the code hasn't changed.
Thx for the gitignore
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.