Comments (6)
This problem is due to the lack of functions which modify the patches' scale.
since a patch is unable to scale its texture a patches texture will look
different from resolution to resolution. In order to rectify this, I have
extended the ninepatch class, adding functions which modify the X and Y scale
of the texture.
The extended class is at https://gist.github.com/3119086 .
Do whatever you wish with it.
Original comment by [email protected]
on 15 Jul 2012 at 11:28
from libgdx-users.
First of, thanks for the extension
I have one question, where exactly function getPatches() should be located, my
project doesn't recognize it? Should I some how pass the "patches" variable
from NinePatch.java?
Original comment by [email protected]
on 15 Jul 2012 at 11:44
from libgdx-users.
Yup, Now I definitely found out that getPatches() function is deleted from new
NinePatch.java revision. I'm just going to alter the NinePatch.java source a
little bit and hopefully it should work. Thanks.
Original comment by [email protected]
on 16 Jul 2012 at 9:50
from libgdx-users.
A 47mb game isn't the executable example I was hoping for. Any chance you can
make a single file + image that shows the problem?
Original comment by [email protected]
on 16 Jul 2012 at 11:11
from libgdx-users.
Also this is the libgdx-users issue tracker, not the libgdx issue tracker.
Original comment by [email protected]
on 16 Jul 2012 at 11:12
from libgdx-users.
hehe, yeah I noticed :D I Just issued in real tracker. I honestly didn't know
there are two. I just saw the logo, you know...
Original comment by [email protected]
on 17 Jul 2012 at 12:37
from libgdx-users.
Related Issues (20)
- add OOTB working "hello world" package for applet deployment
- ArrayIndexOutOfBoundsException when loading md2 model HOT 2
- Particle editor jar for macosx
- crash in emulator: "Can not use IndexBufferObject with GLES 1.0, need 1.1 or 2.0" HOT 2
- SpriteCache.draw (int cacheID, int offset, int length) can't draw Sprite normally
- Freetype natives problem in applet
- where is the demo code to download? HOT 1
- PatternSyntaxException in AndroidFileHandle.java HOT 1
- Some fonts in 0.96 rendering as solid white blocks HOT 2
- [error] Unable to create directory __libgdx_setup_tmp HOT 13
- setListener (addListener) removed from ButtonGroup
- Soft-keyboard not picking up backspace on Android 4.2 HOT 1
- ArrayIndexOutOfBoundsException with DualShock USB Controller
- HTML5 Build: application doesnt start with empty BitmapFont Constructor
- java.lang.NumberFormatException in class com.badlogic.gdx.graphics.g2d.TextureAtlas
- SpriteBatch needs an interface
- Sound + request for new feature (no hurry)
- [error] Unable to create directory __libgdx_setup_tmp
- The project was not built since its build path is incomplete. Cannot find the class file for org.robovm.cocoatouch.uikit.UIApplicationDelegate$Adapter. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libgdx-users.