Comments (4)
- "!response" is a logical operation which check anything for false (null) and true (not null). This case it checks for null only.
At the same time,response
parameter has three possible values: 1 when button1 was clicked, 0 when button2 was clicked and 2 when the dialog were closed by a "cross" button or hidden by ESC. As you see, it has a little bit different logic comparing it to the usual dialogs, where closing a dialog had the same function as clicking the second select button. - Yes, there's no support for multi-line strings in one row/item area, unfortunately. Such feature would require an adaptive shift of all dialog elements according to how many lines there would be in each item and what actual x/y length they add in order to correctly shift the rest of the textdraws.
from alternative-dialogs.
Hello!.
Okay, got it, thank you very much for explaining. I forgot to ask you another thing too.
Do you know what could cause strange symbols/letters appearing at the bottom of each dialog listing?
https://ibb.co/1RQvLXz
https://ibb.co/3FMgSQ8
Best regards.
Thanks for your time.
from alternative-dialogs.
I suppose you are about the game fonts issue when you try to show the symbols that are not peculiar to English/Latin? In this case you can often see mojibake instead of the desired text. Speaking, for example, about Russian, this is usually displayed incorrectly and requires additional installation of russifiers for your game, and only then any characters begin to show correctly. This affects textdraws, gametexts and menus.
from alternative-dialogs.
Hello! Thanks for your reply.
I'm currently using this to fix the latin carachters on alt-dialog textdraws:
stock Desbug(string[])
{
new szFixed[1024],iPos,iLen;
for(iLen = strlen(string); iPos < iLen; iPos ++)
switch (string[iPos])
{
case 'à': szFixed[iPos] = 151;
case 'á': szFixed[iPos] = 152;
case 'â': szFixed[iPos] = 153;
case 'ä': szFixed[iPos] = 154;
case 'À': szFixed[iPos] = 128;
case 'Á': szFixed[iPos] = 129;
case 'Â': szFixed[iPos] = 130;
case 'Ä': szFixed[iPos] = 131;
case 'è': szFixed[iPos] = 157;
case 'é': szFixed[iPos] = 158;
case 'ê': szFixed[iPos] = 159;
case 'ë': szFixed[iPos] = 160;
case 'È': szFixed[iPos] = 134;
case 'É': szFixed[iPos] = 135;
case 'Ê': szFixed[iPos] = 136;
case 'Ë': szFixed[iPos] = 137;
case 'ì': szFixed[iPos] = 161;
case 'í': szFixed[iPos] = 162;
case 'î': szFixed[iPos] = 163;
case 'ï': szFixed[iPos] = 164;
case 'Ì': szFixed[iPos] = 138;
case 'Í': szFixed[iPos] = 139;
case 'Î': szFixed[iPos] = 140;
case 'Ï': szFixed[iPos] = 141;
case 'ò': szFixed[iPos] = 165;
case 'ó': szFixed[iPos] = 166;
case 'ô': szFixed[iPos] = 167;
case 'ö': szFixed[iPos] = 168;
case 'Ò': szFixed[iPos] = 142;
case 'Ó': szFixed[iPos] = 143;
case 'Ô': szFixed[iPos] = 144;
case 'Ö': szFixed[iPos] = 145;
case 'ù': szFixed[iPos] = 169;
case 'ú': szFixed[iPos] = 170;
case 'û': szFixed[iPos] = 171;
case 'ü': szFixed[iPos] = 172;
case 'Ù': szFixed[iPos] = 146;
case 'Ú': szFixed[iPos] = 147;
case 'Û': szFixed[iPos] = 148;
case 'Ü': szFixed[iPos] = 149;
case 'ñ': szFixed[iPos] = 174;
case 'Ñ': szFixed[iPos] = 173;
case '¡': szFixed[iPos] = 64;
case '¿': szFixed[iPos] = 175;
case '`': szFixed[iPos] = 177;
case '&': szFixed[iPos] = 38;
default: szFixed[iPos] = string[iPos];
}
return szFixed;
}
from alternative-dialogs.
Related Issues (2)
- Issue w/ long lists HOT 5
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 alternative-dialogs.