exman       04/11/06 03:48:41

  Modified:    code     gamecreds.py gamelobby.py gamenews.py gamesetup.py
  Log:
  ⺻ ׶ 
  
  Revision  Changes    Path
  1.4       +8 -1      simingostop/code/gamecreds.py
  
  Index: gamecreds.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/gamecreds.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- gamecreds.py	4 Nov 2004 20:07:43 -0000	1.3
  +++ gamecreds.py	5 Nov 2004 18:48:41 -0000	1.4
  @@ -7,6 +7,7 @@
   import gameplay
   import sobject
   
  +bgimage = None
   
   
   credits = (
  @@ -67,6 +68,9 @@
   
       snd.preload('select_choose')
   
  +    global bgimage
  +    bgimage = gfx.load('basebg.png')
  +
   
   class GameCreds(sobject.SHandler):
       def __init__(self, prevhandler):
  @@ -89,7 +93,10 @@
           self.fade = ((1, 4), (8, 3), (15, 2), (21, 1))
           self.darkpic = pygame.Surface(self.area.size)
           self.darkpic.set_alpha(3)
  -        self.set_background(images[0][0])
  +        #self.set_background(images[0][0])
  +
  +        global bgimage
  +        self.set_background(bgimage)
   
       def createtext(self, text, size):
           f, c = fonts[size]
  
  
  
  1.3       +8 -5      simingostop/code/gamelobby.py
  
  Index: gamelobby.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/gamelobby.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- gamelobby.py	4 Nov 2004 20:07:43 -0000	1.2
  +++ gamelobby.py	5 Nov 2004 18:48:41 -0000	1.3
  @@ -38,8 +38,10 @@
   import gamepan
   import objroomlist
   import sobject
  -
  +bgimage = None
   def load_game_resources():
  +    global bgimage
  +    bgimage = gfx.load('basebg.png')
       pass
   
   test_text = """
  @@ -53,6 +55,8 @@
           sobject.SHandler.__init__(self, prevhandler)
           self.input_box = None
           self.done = 0
  +        global bgimage
  +        self.set_background(bgimage)
       
       # Handler가 초기화 될 때 실행됨.
       def starting(self):
  @@ -103,7 +107,6 @@
       
       # IDLE상태일때 호출. 커서 구현시는 업데이트 해줘야함.
       def run(self):
  -        if self.input_box:
  -            pass
  -        
  -
  +        self.input_box.update()
  +        self.multi_box.update()
  +        self.room_list.update()
  
  
  
  1.3       +5 -0      simingostop/code/gamenews.py
  
  Index: gamenews.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/gamenews.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- gamenews.py	4 Nov 2004 20:07:43 -0000	1.2
  +++ gamenews.py	5 Nov 2004 18:48:41 -0000	1.3
  @@ -20,6 +20,7 @@
   news_downloaded = 0
   ship = None
   
  +bgimage = None
   
   Options = [
   "메인 메뉴",
  @@ -48,6 +49,8 @@
   
       snd.preload('select_choose', 'startlife', 'levelskip')
   
  +    global bgimage
  +    bgimage = gfx.load('basebg.png')
   
   def downloadfunc(gamenews):
       global news_downloaded
  @@ -105,6 +108,8 @@
           self.tempwindowed = 0
           self.launchthebrowser = 0
   
  +        global bgimage
  +        self.set_background(bgimage)
   
   
       def starting(self):
  
  
  
  1.3       +5 -4      simingostop/code/gamesetup.py
  
  Index: gamesetup.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/gamesetup.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- gamesetup.py	4 Nov 2004 20:07:43 -0000	1.2
  +++ gamesetup.py	5 Nov 2004 18:48:41 -0000	1.3
  @@ -10,6 +10,7 @@
   import gameplay
   import sobject
   
  +bgimage = None
   
   images = []
   delimage = None
  @@ -55,6 +56,8 @@
       addimage = gfx.load('btn-add.gif')
       #allimage = gfx.load('btn-all.gif')
   
  +    global bgimage
  +    bgimage = gfx.load('basebg.png')
   
   class GameSetup(sobject.SHandler):
       def __init__(self, prevhandler):
  @@ -78,6 +81,8 @@
           self.buildstatus()
   
           self.moveto(self.targetbutton())
  +        global bgimage
  +        self.set_background(bgimage)
   
       def moveto(self, pos):
           if self.shipdir == SHIPUP:
  @@ -233,11 +238,7 @@
           pass
   
       def run(self):
  -        r = self.background(self.images[0][1])
  -        gfx.dirty(r)
  -
           self.moveship()
  -        gfx.updatestars(self.background, gfx)
   
           if self.inputstate != DONE:
               self.drawactionlist()
  
  
  


krisna      04/11/08 22:29:29

  Modified:    code     objlineedit.py
  Log:
  objlineedit.py: pyhangul , self.text, self.preedit unicode str ٲ
  
  Revision  Changes    Path
  1.3       +56 -65    simingostop/code/objlineedit.py
  
  Index: objlineedit.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/objlineedit.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- objlineedit.py	5 Nov 2004 18:09:15 -0000	1.2
  +++ objlineedit.py	8 Nov 2004 13:29:29 -0000	1.3
  @@ -3,7 +3,7 @@
   import pygame
   from pygame.locals import *
   try:
  -    import emhangul
  +    import hangul
   except:
       pass
   
  @@ -36,12 +36,12 @@
   
       def set_focus(self, flag=True):
           """
  -        Cursor ���Ÿ� ����. �Է� ���ɸ�� ����. (not implemented)
  +        Cursor Ÿ . Է ɸ . (not implemented)
           """
           self.has_focus = flag
       def is_focused(self, flag=True):
           """
  -        Cursor ���Ÿ� ����. �Է� ���ɸ�� ����. (not implemented)
  +        Cursor Ÿ . Է ɸ . (not implemented)
           """
           return self.has_focus
           
  @@ -118,20 +118,23 @@
       """
       Text Input Component
       """
  -    def __init__(self, init_text="test", rect = None):
  +    def __init__(self, init_text = "test", rect = None):
           """
  -        Initializer
  -        init_text : ó= �ؽ�Ʈ.
  -        top,left : x���� 'ġ. ���� '���� �ȼ�����. �翬�� top�� '����! left�� ���ʺ���!
  -        has_focus : �����.
  +	Initializer
  +	init_text : ó ؽƮ.
  +	top,left :  ġ.   ȼ. 翬 top ! left  ʺ!
  +	has_focus : .
  +
           """
           try:
  -            self.hangul = emhangul.Create(emhangul.Hangul2)
  +            self.ic = hangul.create_ic(hangul.hangul2)
           except:
  +	    self.ic = none
               pass
  +	self.hangul_mode = 0
           self.preedit = ""
           self.oldpreedit = ""
  -        self.text = init_text
  +        self.text = unicode(init_text, 'utf8')
           if rect==None:
               rect = Rect(left, top, width, height)
           self.top = rect.top
  @@ -155,16 +158,15 @@
           if self.previous_rect:
               pygame.draw.rect(gfx.surface,(0,0,0),self.previous_rect)
           
  -        img = self.font.text(self.color, self.text, (self.top, self.left), "topleft")
  +        img = self.font.text(self.color, self.text.encode('utf8'), (self.top, self.left), "topleft")
           rect = img[1]
           img = img[0]
           self.previous_rect = rect
           
           display_text = self.text
           while img.get_width() > self.width:
  -            _display_text = unicode(display_text, 'utf-8')
  -            display_text = _display_text[1:].encode('utf-8')
  -            img = self.font.text(self.color, display_text, (self.top,self.left),"topleft")
  +            display_text = display_text[1:]
  +            img = self.font.text(self.color, display_text.encode('utf8'), (self.top,self.left),"topleft")
               rect = img[1]
               img = img[0]
               self.previous_rect = rect
  @@ -213,61 +215,51 @@
       
       def delete_from_end(self):
           if self.has_focus == True:
  -            text = unicode(self.text, "utf-8")
  -            self.text = text[:-1].encode('utf-8')
  +            self.text = self.text[:-1]
               self.update()
       def event(self, e):
           if e.type == pygame.KEYDOWN:
  -            if e.key == K_RETURN:
  -                try:
  -                    if self.preedit!='':
  -                        self.hangul.commit()
  -                    preedit = self.hangul.getPreeditString()
  -                    commit = self.hangul.getCommitString()
  -                    self.hangul.clearCommitString()
  -                except:
  -                    preedit = ''
  -                    commit = ''
  -                if self.callbacks.has_key('onEnter'):
  -                    for callback in self.callbacks['onEnter']:
  -                        callback(self.text.strip()+commit)
  -                self.clear()
  -            else:
  -                if e.unicode=='':
  -                    return
  -                #print e
  -                mod = e.mod
  -                if e.mod==2: # right shift
  -                    mod=1
  -
  -                try:
  -                    self.hangul.filterKey(0, ord(str(e.unicode)), mod)
  -                    preedit = self.hangul.getPreeditString()
  -                    commit = self.hangul.getCommitString()
  -                    self.hangul.clearCommitString()
  -                except:
  -                    preedit = ''
  -                    commit = e.unicode.encode('utf-8')
  -                #print preedit+"|"+commit
  -
  -
  -                if e.key == K_BACKSPACE and self.oldpreedit=='' and (preedit=='' and commit==''): # on Backspace
  -                    if len(self.text) > 0:
  -                        self.delete_from_end()
  +	    if e.key == K_BACKSPACE:
  +		if self.ic and self.ic.backspace():
  +		    self.preedit = self.ic.preedit_string()
  +		    self.update()
  +		else:
  +		    if len(self.text) > 0:
  +			self.delete_from_end()
                       if self.callbacks.has_key('onBackspace'):
                           for callback in self.callbacks['onBackspace']:
                               callback()
  -                    return
  +	    else:
  +		if len(e.unicode) <= 0:
  +		    return
  +
  +		if self.ic:
  +		    """ ѿ ȯŰ """
  +		    if e.key == K_SPACE and e.mod & KMOD_SHIFT:
  +			if self.hangul_mode:
  +			    self.hangul_mode = 0
  +			    self.ic.reset()
  +			    preedit = self.ic.preedit_string()
  +			    commit = self.ic.commit_string()
  +			    self.add_text(commit, preedit)
  +			else:
  +			    self.hangul_mode = 1 
  +		    else:
  +			if self.hangul_mode:
  +			    ret = self.ic.filter(ord(e.unicode[0]), 0)
  +			    preedit = self.ic.preedit_string()
  +			    commit = self.ic.commit_string()
  +			    self.add_text(commit, preedit)
  +			    if not ret:
  +				self.add_text(e.unicode)
  +			else:
  +			    self.add_text(e.unicode)
  +		else:
  +		    self.add_text(e.unicode)
   
  -
  -                self.add_text(commit, preedit)
                   if self.callbacks.has_key('textChanged'):
                       for callback in self.callbacks['textChanged']:
                           callback(self.text)
  -
  -                self.oldpreedit = preedit
  -            #self.update()
  -
           
       def update(self):
           """
  @@ -276,17 +268,16 @@
           if self.previous_rect:
               pygame.draw.rect(gfx.surface,(0,0,0),self.previous_rect)
           
  -        img = self.font.text(self.color, self.text+self.preedit, (self.left, self.top), "topleft")
  +        img = self.font.text(self.color, self.text.encode('utf8') + self.preedit.encode('utf8'), (self.left, self.top), "topleft")
           rect = img[1]
           img = img[0]
           self.previous_rect = rect
           
           display_text = self.text+self.preedit
           while img.get_width() > self.width:
  -            _display_text = unicode(display_text, 'utf-8')
  -            display_text = _display_text[1:].encode('utf-8')
  +            display_text = display_text[1:]
   
  -            img = self.font.text(self.color, display_text, (self.left,self.top),"topleft")
  +            img = self.font.text(self.color, display_text.encode('utf8'), (self.left,self.top),"topleft")
               rect = img[1]
               img = img[0]
               self.previous_rect = rect
  @@ -313,8 +304,8 @@
           """
           Clear Current Rect
           """
  -        self.text=""
  -        self.preedit=""
  +        self.text = unicode("")
  +        self.preedit = unicode("")
           self.oldpreedit=""
           try:
               self.hangul.clearCommitString()
  
  
  


exman       04/11/14 05:02:39

  Modified:    code     gamemenu.py main.py objlineedit.py
  Added:       code     gamelogin.py
  Log:
  로그인 화면 작성
  
  Revision  Changes    Path
  1.5       +2 -2      simingostop/code/gamemenu.py
  
  Index: gamemenu.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/gamemenu.py,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- gamemenu.py	4 Nov 2004 20:07:43 -0000	1.4
  +++ gamemenu.py	13 Nov 2004 20:02:39 -0000	1.5
  @@ -8,7 +8,7 @@
   import gfx, snd, txt
   import input
   import players
  -import gamecreds, gamenews, gamepref, gamelobby
  +import gamecreds, gamenews, gamepref, gamelobby, gamelogin
   #FIXME gamestart 제거하자
   
   import gamewin
  @@ -40,7 +40,7 @@
       global menus, images
       #MenuItem('start', gamestart.GameStart),
       menus = [
  -        MenuItem('lobby', gamelobby.GameLobby),
  +        MenuItem('lobby', gamelogin.GameLogin),
           MenuItem('news', gamenews.GameNews),
           MenuItem('creds', gamecreds.GameCreds),
           MenuItem('setup', gamepref.GamePref),
  
  
  
  1.6       +2 -0      simingostop/code/main.py
  
  Index: main.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/main.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- main.py	5 Nov 2004 18:09:15 -0000	1.5
  +++ main.py	13 Nov 2004 20:02:39 -0000	1.6
  @@ -116,6 +116,8 @@
               mouse.event(event)
               handler.event(event)
   
  +        if game.handler==None:
  +            break
           if None != game.handler.get_background():
               allsprites.clear(gfx.surface, game.handler.get_background())
               mousesprite.clear(gfx.surface, game.handler.get_background())
  
  
  
  1.4       +28 -16    simingostop/code/objlineedit.py
  
  Index: objlineedit.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/objlineedit.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- objlineedit.py	8 Nov 2004 13:29:29 -0000	1.3
  +++ objlineedit.py	13 Nov 2004 20:02:39 -0000	1.4
  @@ -20,9 +20,15 @@
           self.width = rect.width
           self.height = rect.height
           self.has_focus = False
  -        self.color = (220,230,240)
  +        self.color = (0,0,0)
  +        self.linecolor = (0,0,0)
           self.font = txt.Font(None, 15, italic=1)
           self.__update_img_rect_list()
  +
  +    def set_color(self, color):
  +        self.color = color
  +    def set_linecolor(self, color):
  +        self.linecolor = color
       
       def add_line(self, line_without_feed):
           self.text = self.text + "\n" + line_without_feed
  @@ -91,10 +97,10 @@
           Screen ����Ʈ (�׸���)
           """
           pygame.draw.rect(gfx.surface,(0,0,0),pygame.Rect(((self.left,self.top),(self.width,self.height))))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left+self.width,self.top))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left+self.width,self.top))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
           
           img_rect_list = self.img_rect_list
           total_height = self.__calculate_height(img_rect_list)
  @@ -143,9 +149,15 @@
           self.height = rect.height
           self.has_focus = False
           self.previous_rect = None
  -        self.color = (220, 230, 240)
  +        self.color = (0,0,0)
  +        self.linecolor = (0,0,0)
           self.font = txt.Font(None, 15, italic=1)
           self.callbacks = {}
  +    def set_color(self, color):
  +        self.color = color
  +    def set_linecolor(self, color):
  +        self.linecolor = color
  +    
       def connect(self, signal, callback):
           if not self.callbacks.has_key(signal):
               self.callbacks[signal] = []
  @@ -173,15 +185,15 @@
           
           pygame.draw.rect(gfx.surface,(255,0,0),rect)
   
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left+self.width,self.top))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left+self.width,self.top))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
           
           #if img.get_width() > self.width:
           #    img = img.subsurface(pygame.Rect((self.left,self.top,self.width,self.height)))
           #img.set_clip(pygame.Rect((self.left,self.top,self.width,self.height)))
  -        #pygame.draw.rect(gfx.surface,(255,255,255),rect)
  +        #pygame.draw.rect(gfx.surface,self.linecolor,rect)
           #r = img.get_rect().move(10, 10)
           gfx.dirty(gfx.surface.blit(img, rect))
       
  @@ -284,10 +296,10 @@
           
           pygame.draw.rect(gfx.surface,(255,0,0),rect)
   
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top),(self.left+self.width,self.top))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  -        pygame.draw.line(gfx.surface,(255,255,255),(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left+self.width,self.top))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top+self.height),(self.left+self.width,self.top+self.height))
  +        pygame.draw.line(gfx.surface,self.linecolor,(self.left+self.width,self.top),(self.left+self.width,self.top+self.height))
           
           #print "width of text : " + str(img.get_width())
           #if img.get_width() > self.width:
  @@ -295,7 +307,7 @@
           #img.set_clip(pygame.Rect((self.left,self.top,self.width,self.height)))
           #print img
           #print rect
  -        #pygame.draw.rect(gfx.surface,(255,255,255),rect)
  +        #pygame.draw.rect(gfx.surface,self.linecolor,rect)
           #r = img.get_rect().move(10, 10)
   
           gfx.dirty(gfx.surface.blit(img, rect))
  
  
  
  1.1                  simingostop/code/gamelogin.py
  
  Index: gamelogin.py
  ===================================================================
  """LineInputBox Test"""
  """
  
  Spiritualized
  Ocean Colour Scene
  Pulp
  Manic Street Preachers
  Paul Weller
  Kula Shaker
  Black Box Recorder
  Luke Heins
  Billy Bragg
  Catherine Wheel - Chrome
  MOGWAI
  My Bloody Valetine - Loveless
  
  Love Psychidelico
  Pizzicato Five
  The Clientele
  Neutral Milk Hotel
  
  """
  
  
  import math, os, threading, re
  import urllib, tempfile, shutil
  import pygame, pygame.font, pygame.draw
  from pygame.locals import *
  import game
  import gfx, snd, txt
  import input
  import gameplay
  import webbrowser
  import objbox
  import xmlrpclib
  import cPickle
  import objlineedit
  import gamepan
  import objroomlist
  import sobject
  bgimage = None
  def load_game_resources():
      global bgimage
      bgimage = gfx.load('loginbg.png')
      pass
  
  test_text = """
  대기실 채팅창 입니다.
  방가방가 *^^*
  """
  
  class GameLogin(sobject.SHandler):
      # 초기화 코드.
      def __init__(self, prevhandler):
          sobject.SHandler.__init__(self, prevhandler)
          self.id_input = None
          self.passwd_input = None
          self.multi_box = objlineedit.MultiLineView(test_text, Rect(100, 150, 400, 300));
          global bgimage
          self.set_background(bgimage)
  
          fnt = txt.Font(None, 18)
          self.lbl_id = fnt.text((0, 0, 0), '아이디', (300, 258), 'topleft', (255, 255, 255))
          self.lbl_passwd = fnt.text((0, 0, 0), '비밀번호', (300, 288), 'topleft', (255, 255, 255))
      
      # Handler가 초기화 될 때 실행됨.
      def starting(self):
          gfx.dirty(gfx.surface.blit(*self.lbl_id))
          gfx.dirty(gfx.surface.blit(*self.lbl_passwd))
  
          self.id_input = objlineedit.LineEdit("", Rect(380,260,120,20));
          self.passwd_input = objlineedit.LineEdit("", Rect(380,290,120,20));
          self.id_input.set_color((0,0,0))
          self.passwd_input.set_color((0,0,0))
          self.id_input.set_linecolor((0,0,0))
          self.passwd_input.set_linecolor((0,0,0))
          """
          self.id_input.connect('onEnter', self.multi_box.add_line)
          self.passwd_input.connect('onEnter', self.cmd)
          """
          self.id_input.update()
          self.passwd_input.update()
  
          self.id_input.set_focus()
  
          self.button = sobject.SButton(gfx.load('button_login_off.png'), \
                                  gfx.load('button_login_on.png'))
          self.button.set_pos((380, 335))
          self.add_sprite(self.button)
  
  
      # 종료시에 호출하는 코드. 주의. 콜백아님.
      def quit(self):
          game.handler = self.prevhandler
      
      # 입력 핸들러. (키입력)
      def input(self, i):
          if i.release:
              return
  
          if i.translated == input.ABORT:
              snd.play('select_choose')
              self.quit()
          
      # 이벤트 핸들러. 
      def event(self, e):
          if self.id_input.is_focused():
              self.id_input.event(e)
          if self.passwd_input.is_focused():
              self.passwd_input.event(e)
          self.button.event(e)
      
      # IDLE상태일때 호출. 커서 구현시는 업데이트 해줘야함.
      def run(self):
          self.id_input.update()
          self.passwd_input.update()
  
          gfx.dirty(gfx.surface.blit(*self.lbl_id))
          gfx.dirty(gfx.surface.blit(*self.lbl_passwd))
  
  
  


exman       04/11/14 05:02:40

  Added:       data     button_login_off.png button_login_on.png
                        loginbg.png
  Log:
  로그인 화면 작성
  
  Revision  Changes    Path
  1.1                  simingostop/data/button_login_off.png
  
  	<<Binary file>>
  
  
  1.1                  simingostop/data/button_login_on.png
  
  	<<Binary file>>
  
  
  1.1                  simingostop/data/loginbg.png
  
  	<<Binary file>>
  
  


exman       04/11/14 05:11:41

  Modified:    code     objlineedit.py
  Log:
   Ƽ ߰
  
  Revision  Changes    Path
  1.5       +7 -4      simingostop/code/objlineedit.py
  
  Index: objlineedit.py
  ===================================================================
  RCS file: /cvsroot/simin/simingostop/code/objlineedit.py,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- objlineedit.py	13 Nov 2004 20:02:39 -0000	1.4
  +++ objlineedit.py	13 Nov 2004 20:11:41 -0000	1.5
  @@ -151,12 +151,15 @@
           self.previous_rect = None
           self.color = (0,0,0)
           self.linecolor = (0,0,0)
  +        self.bgcolor = (255, 255, 255)
           self.font = txt.Font(None, 15, italic=1)
           self.callbacks = {}
       def set_color(self, color):
           self.color = color
       def set_linecolor(self, color):
           self.linecolor = color
  +    def set_bgcolor(self, color):
  +        self.bgcolor = color
       
       def connect(self, signal, callback):
           if not self.callbacks.has_key(signal):
  @@ -278,9 +281,9 @@
           Screen ����Ʈ (�׸���)
           """
           if self.previous_rect:
  -            pygame.draw.rect(gfx.surface,(0,0,0),self.previous_rect)
  +            pygame.draw.rect(gfx.surface,self.bgcolor,self.previous_rect)
           
  -        img = self.font.text(self.color, self.text.encode('utf8') + self.preedit.encode('utf8'), (self.left, self.top), "topleft")
  +        img = self.font.text(self.color, self.text.encode('utf8') + self.preedit.encode('utf8'), (self.left, self.top), "topleft", (255,255,255))
           rect = img[1]
           img = img[0]
           self.previous_rect = rect
  @@ -289,12 +292,12 @@
           while img.get_width() > self.width:
               display_text = display_text[1:]
   
  -            img = self.font.text(self.color, display_text.encode('utf8'), (self.left,self.top),"topleft")
  +            img = self.font.text(self.color, display_text.encode('utf8'), (self.left,self.top),"topleft", (255,255,255))
               rect = img[1]
               img = img[0]
               self.previous_rect = rect
           
  -        pygame.draw.rect(gfx.surface,(255,0,0),rect)
  +        pygame.draw.rect(gfx.surface,(200,200,200),rect)
   
           pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left,self.top+self.height))
           pygame.draw.line(gfx.surface,self.linecolor,(self.left,self.top),(self.left+self.width,self.top))
  
  
  


suup        04/11/23 22:53:17

  Log:
  Status:
  
  Vendor Tag:	tcvs-vendor
  Release Tags:	tcvs-release
  
  No conflicts created by this import


comfuture    04/11/24 17:39:57

  Log:
  Status:
  
  Vendor Tag:	tcvs-vendor
  Release Tags:	tcvs-release
  
  No conflicts created by this import


