Jump to content

AriosJentu

Members
  • Posts

    325
  • Joined

  • Last visited

Posts posted by AriosJentu

  1. A little update - fixed bug with naming for image functions

    - Added function to enable/disable shadow for CustomTableView (setShadowsEnabled/getShadowsEnabled). It can save for you 2 pixels

    - Added function to set static image dynamic change color from color scheme. Works same as this methods for CustomLabel (setSchematicalColor/isSchematicalColor)

  2. 22 hours ago, 669344682 said:

    I really wish that author keep updating this ui system, It's pretty good - clean and beautiful. I have a problem - the wiki is not complete, for instance the staticImg statement.

    If you want, you can update wiki pages) Cuz I haven't time to do it :D

  3. 8 hours ago, stalowy10 said:

    Hello i have a problem with a installlation GUI, i think i installed this properly but in console i have an error "Couldn't find file client/help_documentation.xml for GUI resources" but i have that file, can someone help?

    It's not problem with this resource, I think. You can try to reinstall MTA, maybe it will work. And also, tell me, which steps do you do for installation.

    • Like 1
  4. Some minor update:

    - Fixed bugs with dialog color shemes.

    - Fixed bugs with window maximal size (now it works).

    - Added test widget for resizing in examples.

    To improve resource CPU usage, I've just disabled both lua files in meta. In future I'll try to optimize win.lua.

  5. Oh. Looks just good :D But you have one big problem with colors and shadows. You haven't any shadow under combobox, and mixing red, blue, and some shades of gray doesn't looks very good :D You haven't any static pretty color scheme, but it also looks very good in concept as GUI-Elements :D

    • Like 1
  6. 10 hours ago, Master_MTA said:

    use math :D

    hahahah you need your mindx20 in my dx lib i didn't use any render target to avoid that :D

     

    And how did you made a scroll pane? Did you test it? Or layers or objects - how does it works? I mean positions of object - front or back position of window. Window behind window, and etc?

  7. Update: Added Custom Text Boxes (CustomEdits analog, but with custom design)

    - It can be fully transparent, and can be putted on some your-own objects

    - Added functions to get caret selection parameters

    For current time its not merged in win.lua, cuz now testing for bugs. You also can send me bug reports.

    Note: This boxes will never get fonts for memo boxes, because coefficient of difference between two lines are different for all fonts.

    Screenshot: (notice that this style is not recommending to use in current windows system style, but it demonstrate how does them looks like)

    UMZasgP.jpg

    And, of course, this can be overload your CPU, because it's GUI :D In future, I hope, I'll port this system to DX, but for now I haven't any ideas how to make on them layering and hiding parts of images in some frames (for scroll panes, for example)

  8. Update: Fixed codestyle for widgets

    - Fixed codestyle of Custom Tooltips and Custom Loadings

    - Added font functions for Custom Tooltips

    - Removed some unnecessary lines for some optimization (but I think - nothing will happened with CPU usage :D)

  9. 8 hours ago, Master_MTA said:

    yeah i know am talking about calculation method 

    Your calculation method can't be used here, because it needs to update position every time - every frame will be exec function "guiSetPosition", and it will have more lags, because this fuction executes in onClientRender, and it haven't any optimizations.

  10. 9 hours ago, MrDadosz said:

    I used example.lua file included with script. I tested it today and I have big lagspikes when I'm moving main window to the bottom of the screen (left - right, right - left, down - up works normally, but moving it from top to bottom causes lag spikes).

    Video:

     

    I know about this troubles. One of the reasons is events, like OnClientRender and OnClientCursorMove. In this events there is too many calculations per frame - getting and setting gui positions. And I haven't any ideas how to fix this, cuz this events must be as main events of system, used to moving/resizing functions, widget animations and etc.

  11. 1 hour ago, MrDadosz said:

    Nevermind, there were commented lines in meta.xml. Really nice, but my i5-6500 can't handle it. 100% core usage when I'm moving my mouse on GUI from this resource :/

    Give me example, where (or on what widget) you moving mouse and CPU usage is overloads. Is it on all widgets? 

    Cuz I have i5-7200U, and U series are for laptops, and I haven't loading more than 20% of this resource.

  12. 2 hours ago, iMr.WiFi..! said:

     

    I recently edit the reply check it.


    +

    Problem (Line: 4981):
    Using ":setSystemFont" of checkbox doesn't change font.
    I solve this by changing line to: "checkbox.Label:setSystemFont(font)"

    Thank you. In current version fixed bug with checkboxes and buttons, and added font functions to dialogs. In next update I'll try to add them for Tooltips.

  13. 29 minutes ago, iMr.WiFi..! said:

    Problem on line(6414):
    You need to delete this line because Tab panel doesn't have a Label to Set font.

    Thank you. It now fixed.

    1 minute ago, iMr.WiFi..! said:

    Suggestion:
    Make ".setFont" & ".setSystemFont" for Custom Combobox Items.

    Oki, I'll add it soon.

    • Like 1
  14. Update: Added CustomStaticImage widgets:

    - Added CustomStaticImage widgets. When using this as parent, it saves to object Color Scheme. Used with fixing next bug:

    - Fixed bug when adding element to TabPanel, it wont saves color scheme of TabPanel

    - Added functions setFont, setFontSize and setSystemFont for some widgets, like Window, Edits, Labels, Buttons, and etc. Almost for all widgets.

    *setFont function used for set custom font (.ttf), and setSystemFont used for set default MTA fonts for widget.

    • Like 1
  15. 1 hour ago, iMr.WiFi..! said:

    Suggestion: Make ":setFont" method for all elements in your script. like: Edits, Memos, Tabs(Title), Window(Title).
    It's easy because i already made those in my version.

    Problem(Maybe not): When i use Dark red theme with my window, (into the window) i made my Tab panels the Labels, Check boxes(Label) Comes with gray color and this make it hard to read.
    ( I solve this by make the entire Labels, Check boxes again with dark red theme )  

    Thank you for suggestion and reporting :)

    About problem - I understand it. The reason is - tabpanel's tab now haven't option to save color scheme from it's parent. I think I'll add it in future.

    About fonts - I'll add them soon.

  16. 23 hours ago, iMr.WiFi..! said:

    + Problem: When you use customCheckBox.create with true in Relative it doesn't show at all.

    Thanks for reporting) Give me please an example of code, where it won't works) About Fonts, I this l think, I'll add default fonts, but now I'm working on Custom Edits, created without using standart GUIs, and one trouble of them - I can't find methods to calculate blocks spacing in multiline. That's reason, why I do not recommend to change fonts for new future custom edit boxes. But for all another widgets, you can set standart MTA SA  fonts by default, using basic MTA labels method setFont. 

  17. Update: Windows can be resizable by user

    - Added function getCWType to get type of object of Custom Widget. If object is not connected with CustomWidgets, it returns nil. Function returns class parent, and can be used as generator of new object.

    - Added blocks on window to resize it with mouse.

    - Added functions to set minimal and maximal sizes of window.

    - Now all objects and classes has string name of self. Parameter calls ClassName. For example: CustomWindow.ClassName = "CustomWindow".

  18. Update: fixed bugs with combo boxes and edit boxes:

    - Fixed bug with edit box, when you click on it, it's focus was blur.

    - Fixed bug with combo boxes, when clear combo box, it clears only every second item

    - Fixed bug with combo boxes, when removing item, size of opened combobox doesn't changing

    • Like 1
  19. Update: Done work on events of system:

    - Now method addEvent returns modified function of event to call it for method removeEvent.

    - Added method removeEvent for classes, argument of event function needs to be a function, what returns with addEvent.

    - Now added method destroy for all classes to destroy Custom Widget. Yay :D

    - Added methods to get/set text for Custom Tooltip.

    - For Tabbed Panels added method to clear all tabs.

     

    • Like 2
×
×
  • Create New...