| 440 | |
| 441 | #if 0 // RLC |
| 442 | void NetHackQtStatusWindow::resizeEvent(QResizeEvent*) |
| 443 | { |
| 444 | #if 0 |
| 445 | const float SP_name=0.13; // <Name> the <Class> (large) |
| 446 | const float SP_dlev=0.13; // Level 3 in The Dungeons of Doom (large) |
| 447 | const float SP_atr1=0.25; // STR DEX CON INT WIS CHA |
| 448 | const float SP_hln1=0.02; // --- |
| 449 | const float SP_atr2=0.09; // Au HP PW AC LVL EXP |
| 450 | const float SP_hln2=0.02; // --- |
| 451 | const float SP_time=0.09; // time score |
| 452 | const float SP_hln3=0.02; // --- |
| 453 | const float SP_stat=0.25; // Alignment, Poisoned, Hungry, Sick, etc. |
| 454 | |
| 455 | int h=height(); |
| 456 | int x=0,y=0; |
| 457 | |
| 458 | int iw; // Width of an item across line |
| 459 | int lh; // Height of a line of values |
| 460 | |
| 461 | lh=int(h*SP_name); |
| 462 | name.setGeometry(0,0,width(),lh); y+=lh; |
| 463 | lh=int(h*SP_dlev); |
| 464 | dlevel.setGeometry(0,y,width(),lh); y+=lh; |
| 465 | |
| 466 | lh=int(h*SP_hln1); |
| 467 | hline1.setGeometry(0,y,width(),lh); y+=lh; |
| 468 | |
| 469 | lh=int(h*SP_atr1); |
| 470 | iw=width()/6; |
| 471 | str.setGeometry(x,y,iw,lh); x+=iw; |
| 472 | dex.setGeometry(x,y,iw,lh); x+=iw; |
| 473 | con.setGeometry(x,y,iw,lh); x+=iw; |
| 474 | intel.setGeometry(x,y,iw,lh); x+=iw; |
| 475 | wis.setGeometry(x,y,iw,lh); x+=iw; |
| 476 | cha.setGeometry(x,y,iw,lh); x+=iw; |
| 477 | x=0; y+=lh; |
| 478 | |
| 479 | lh=int(h*SP_hln2); |
| 480 | hline2.setGeometry(0,y,width(),lh); y+=lh; |
| 481 | |
| 482 | lh=int(h*SP_atr2); |
| 483 | iw=width()/6; |
| 484 | gold.setGeometry(x,y,iw,lh); x+=iw; |
| 485 | hp.setGeometry(x,y,iw,lh); x+=iw; |
| 486 | power.setGeometry(x,y,iw,lh); x+=iw; |
| 487 | ac.setGeometry(x,y,iw,lh); x+=iw; |
| 488 | level.setGeometry(x,y,iw,lh); x+=iw; |
| 489 | //exp.setGeometry(x,y,iw,lh); x+=iw; |
| 490 | x=0; y+=lh; |
| 491 | |
| 492 | lh=int(h*SP_hln3); |
| 493 | hline3.setGeometry(0,y,width(),lh); y+=lh; |
| 494 | |
| 495 | lh=int(h*SP_time); |
| 496 | iw=width()/3; x+=iw/2; |
| 497 | time.setGeometry(x,y,iw,lh); x+=iw; |
| 498 | score.setGeometry(x,y,iw,lh); x+=iw; |
| 499 | x=0; y+=lh; |