Thread: Sky Color

Results 1 to 10 of 10
  1. #1 Sky Color 
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Hey Rune-server so on my fixed screen the sky is blue and on my resizable Screen it is blank so i wanted it to be all be blue

    so i had this code for fixed

    Code:
    if(fog && !resizableScreen) {            DrawingArea.drawPixels(503, 0, 0, 0xA9D0F5, 765);                
            }
    So i got that method and under it i added

    Code:
    if(fog && resizableScreen) {
                DrawingArea.drawPixels(503, 0, 0, 0xA9D0F5, 765);                
            }
    now it works but there is a bug where its blue and black

    as u can see here

    Reply With Quote  
     

  2. #2  
    Registered Member Penguin's Avatar
    Join Date
    Jan 2014
    Posts
    17
    Thanks given
    6
    Thanks received
    10
    Rep Power
    18
    change:
    Code:
    DrawingArea.drawPixels(503, 0, 0, 0xA9D0F5, 765);
    to:
    Code:
    DrawingArea.drawPixels(currentGameHeight, 0, 0, 0xA9D0F5, currentGameWidth);
    The naming I've posted here may be incorrect.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Quote Originally Posted by Penguin View Post
    change:
    Code:
    DrawingArea.drawPixels(503, 0, 0, 0xA9D0F5, 765);
    to:
    Code:
    DrawingArea.drawPixels(currentGameHeight, 0, 0, 0xA9D0F5, currentGameWidth);
    The naming I've posted here may be incorrect.
    thnaks forgot about the size hahaha
    Reply With Quote  
     

  5. #4  
    Registered Member AbdMoazen's Avatar
    Join Date
    Aug 2014
    Age
    25
    Posts
    93
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Penguin View Post
    change:
    Code:
    DrawingArea.drawPixels(503, 0, 0, 0xA9D0F5, 765);
    to:
    Code:
    DrawingArea.drawPixels(currentGameHeight, 0, 0, 0xA9D0F5, currentGameWidth);
    The naming I've posted here may be incorrect.
    I have to put my game height and width?
    if yes how i can know my game height and width
    if no this gives error
    Reply With Quote  
     

  6. #5  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    just make if if(fog)
    Reply With Quote  
     

  7. Thankful user:


  8. #6  
    Registered Member AbdMoazen's Avatar
    Join Date
    Aug 2014
    Age
    25
    Posts
    93
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Zion View Post
    just make if if(fog)
    I don't mean that bro.the system can't find the method (or w.e it named) -currentgameheight- and -currentgamewidth-.
    Reply With Quote  
     

  9. #7  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Quote Originally Posted by AbdMoazen View Post
    I don't mean that bro.the system can't find the method (or w.e it named) -currentgameheight- and -currentgamewidth-.


    replace

    currentgameheight

    with

    765

    and the width with

    503
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    hacker's Avatar
    Join Date
    Jun 2013
    Posts
    1,409
    Thanks given
    576
    Thanks received
    580
    Rep Power
    5000
    clientHeight clientWidth
    Attached image
    Reply With Quote  
     

  12. Thankful user:


  13. #9  
    Registered Member AbdMoazen's Avatar
    Join Date
    Aug 2014
    Age
    25
    Posts
    93
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Thanks u 2!
    hope it will work
    Reply With Quote  
     

  14. #10  
    Registered Member AbdMoazen's Avatar
    Join Date
    Aug 2014
    Age
    25
    Posts
    93
    Thanks given
    10
    Thanks received
    1
    Rep Power
    11
    Gumd
    Under that tree, alone in the middle of carpets of grass, there is the place i need to rest in
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How do i remove solitude's colored sky'es?
    By Obito Uchiha in forum Help
    Replies: 3
    Last Post: 01-02-2013, 06:19 PM
  2. [Map co-ord based] Sky Color
    By Benji in forum Snippets
    Replies: 11
    Last Post: 12-02-2011, 12:30 PM
  3. Sky Box color?
    By God in forum Help
    Replies: 6
    Last Post: 04-11-2011, 03:58 PM
  4. sky color (rep+)
    By Lord Stark in forum Help
    Replies: 0
    Last Post: 01-20-2011, 08:52 PM
  5. Changing Loading Bar color & Flames color!
    By Ninja Cat in forum Tutorials
    Replies: 14
    Last Post: 12-22-2008, 11:54 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •