hedgewars/uStore.pas
changeset 2873 e7acb0251a22
parent 2844 cea15ef417ea
child 2874 3c7c2bf1ba38
equal deleted inserted replaced
2872:6e911d72263a 2873:e7acb0251a22
   242 		DrawHealthY:= drY;
   242 		DrawHealthY:= drY;
   243 		for i:= 0 to 7 do
   243 		for i:= 0 to 7 do
   244 			with Hedgehogs[i] do
   244 			with Hedgehogs[i] do
   245 				if Gear <> nil then
   245 				if Gear <> nil then
   246 					begin
   246 					begin
   247 					NameTagTex:= RenderStringTex(Name, Clan^.Color, fnt16);
   247 					NameTagTex:= RenderStringTex(Name, Clan^.Color, CheckCJKFont(Name,fnt16));
   248 					if Hat <> 'NoHat' then
   248 					if Hat <> 'NoHat' then
   249 						begin
   249 						begin
   250 						texsurf:= LoadImage(Pathz[ptHats] + '/' + Hat, ifNone);
   250 						texsurf:= LoadImage(Pathz[ptHats] + '/' + Hat, ifNone);
   251 						if texsurf <> nil then
   251 						if texsurf <> nil then
   252 							begin
   252 							begin
   414 
   414 
   415 // name of weapons in ammo menu
   415 // name of weapons in ammo menu
   416 for ai:= Low(TAmmoType) to High(TAmmoType) do
   416 for ai:= Low(TAmmoType) to High(TAmmoType) do
   417 	with Ammoz[ai] do
   417 	with Ammoz[ai] do
   418 		begin
   418 		begin
   419 		tmpsurf:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(trAmmo[NameId]), cWhiteColorChannels);
   419 		tmpsurf:= TTF_RenderUTF8_Blended(Fontz[CheckCJKFont(trAmmo[NameId],fnt16)].Handle, Str2PChar(trAmmo[NameId]), cWhiteColorChannels);
   420 		tmpsurf:= doSurfaceConversion(tmpsurf);
   420 		tmpsurf:= doSurfaceConversion(tmpsurf);
   421 		NameTex:= Surface2Tex(tmpsurf, false);
   421 		NameTex:= Surface2Tex(tmpsurf, false);
   422 		SDL_FreeSurface(tmpsurf)
   422 		SDL_FreeSurface(tmpsurf)
   423 		end;
   423 		end;
   424 
   424