Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

In this guide, you will find the necessary script modifications to incorporate loading tips during the loading process along with a percentage loading bar. I must mention that the loading tips script was written quickly, so it may contain some imperfections, but it is operational.

Loading Tips Implementation

Version 1:

  1. Editing introloading.py

    Navigate to the file located at root/introloading.py.

    Locate the following line:

     
This is the hidden content, please

Add this new line below it:

 
  • This is the hidden content, please

     

  • Finding the Width Calculation

    Search for:

     
This is the hidden content, please

Before this section, include:

 
  1. This is the hidden content, please

     


Modifications in uiscriptlocale.py

  1. Updating Locale File Loading

    Open root/uiscriptlocale.py.

    Search for:

     
This is the hidden content, please

Add this line directly below it:

 
  1. This is the hidden content, please

     


Changes in ui.py

  1. Replace ThinBoard with MiddleBoard

    Locate:

     
This is the hidden content, please

Change it to:

 
  • This is the hidden content, please

     

  • Loading Element Logic for MiddleBoard

    Modify the loading logic as follows:

     
  1. This is the hidden content, please

     


Updates in loadingwindow.py

  1. Adding Background Information

    Open locale/xx/ui/loadingwindow.py.

    Search for the board definition:

     
This is the hidden content, please

Under this, insert:

 
  1. This is the hidden content, please

     


Loading Percentage Bar Integration

  1. Adjust Loading Image Scaling

    Go back to the introloading.py file.

    Search for:

     
This is the hidden content, please

Add this line below:

 
  • This is the hidden content, please

     

  • Updating the Loading Gauge

    Locate:

     
This is the hidden content, please

Right beneath it, insert:

 
  • This is the hidden content, please

     

  • Setting the Loading Percentage Logic

    Search for the line:

     
This is the hidden content, please

Add the following beneath it:

 
  • This is the hidden content, please

     

  • Final Loading Window Updates

    In locale/ro/ui/loadingwindow.py, find:

     
This is the hidden content, please

Insert this after it:

 
This is the hidden content, please

 

 

Version 2 Instructions:

  1. Modify introloading.py

    Navigate to the file located at root/introloading.py.

    Locate the following line:

     
This is the hidden content, please

Add this line below it:

 
  • This is the hidden content, please

     

  • Adjust the Width Calculation

    Search for:

     
This is the hidden content, please

Just before this calculation, add:

 
  1. This is the hidden content, please

     


Updates in ui.py

  1. Switch from ThinBoard to MiddleBoard

    Open the file located at root/ui.py.

    Find the following class definition:

     
class ThinBoard(Window):
    

Replace it with:

 
  • This is the hidden content, please

     

  • Implement Size Adjustment Logic for MiddleBoard

    Include the following method within the class:

     
  1. This is the hidden content, please

     


Adjustments in loadingwindow.py

  1. Search for Background Definition

    Open the file located at locale/xx/ui/loadingwindow.py.

    Find the board definition:

     
  • This is the hidden content, please

     

  • Add the TipBackground Section Below It:

     
  1. This is the hidden content, please

     


Implementing Loading Percentage Bar

  1. Add to Loading Image Scaling

    Return to the introloading.py file.

    Search for:

     
This is the hidden content, please

Add this line immediately below it:

 
  • This is the hidden content, please

     

  • Get Loading Percentage Text

    Find the line:

     
This is the hidden content, please

Shortly after, add:

 
  • This is the hidden content, please

     

  • Update Percentage Calculation Logic

    Locate:

     
This is the hidden content, please

Insert this line afterwards:

 
  • This is the hidden content, please

     

  • Final Addition in loadingwindow.py

    In locale/ro/ui/loadingwindow.py, search for:

     
This is the hidden content, please

Insert the following right after:

 
This is the hidden content, please

 

 

By following the instructions in this guide, you will enhance your application's loading screens with interactive tips and a percentage-based loading bar. This will provide users with a more engaging loading experience and keep them informed.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...